A write to a volatile field happens-before every subsequent read of that same volatile.
对volatile字段的写happens - before同一volatile的每一个后续读。
Each action in a thread happens-before every action in that thread that comes later in the program order.
线程中的每一个操作happens - before这个线程中在程序顺序中后面出现的每一个操作。
Happens-before orderings across threads are only created by synchronizing on a common lock or accessing a common volatile variable.
只有在通用锁上执行同步或访问一个通用的可变变量时,才能创建跨线程的Happens - before排序。
But soon Smith is reporting even before it happens—and it's all terrible—one disaster after another.
但很快,史密斯甚至在事情发生之前就开始报道了,这是一场又一场可怕的灾难。
The defect happens when a baby's top lip or mouth doesn't form properly before birth.
这种缺陷是由于婴儿的上唇或嘴巴在出生前没有正常形成。
Of course before all that happens there is the small matter of deciding where the telescope will be built.
当然,在所有这一切发生之前,有一件小事就是决定将在哪儿建造望远镜。
But what happens before the resurrection?
复活之前要发生什么事?
For a railway operator, the ability to predict a failure before it happens would be tremendously valuable.
对于铁路操作人员,在故障发生之前预测它的能力将具有无可估量的价值。
Change itself isn't bad, but uncontrolled change — where the impact is not measured before it happens — can be detrimental to the success of a project.
变化本身不是坏事,但是不受控制的变化(影响在发生之前无法测量)对于项目的成功则是有害的。
A custom component must override this method to commit properties before validation happens.
定制组件必须在验证发生之前覆盖这个方法以提交属性。
You really need to intervene before this all happens, you need to identify the children who are at risk.
一定要在这一切发生之前进行干预,要确定哪些儿童有危险。
And if you expect it to happen - even see it as already happening, before it happens - you won't get so upset.
你要做的就是期望它们发生,甚至在发生前就把它们看作已经发生的事实,那么你就不会那么恼怒了。
Change in itself isn't bad. The evil beast is uncontrolled change — change whose impact is not measured before it happens.
变化本身并没有错,糟糕的是没有控制的变化—在它发生之前,无法衡量其影响。
And if you expect it to happen-even see it as already happening, before it happens-you won't get so upset.
但如果你料想到它会发生——甚至在事情发生前,就把它看作已发生——你就不会那么烦恼了。
Perhaps we should all be breeding starlings in our back gardens now before the unthinkable happens.
在难以想象的事情发生之前,也许我们从现在起就应该在自己的后花园中繁殖惊鸟。
We can't know the future before it happens, but if we don't ask the question, we may be surprised when reality unfolds.
我们不可预知尚未发生的未来,但如果不胡思乱想,现实逐渐显现的峥嵘面容将令我么措手不及。
I'm ready for the ride to come to its natural end, but I don't want to anticipate it or celebrate it before it happens or even to talk about it.
我准备好将这次旅行进行到底了,但是在旅程结束之前,我对它既不期望也不想庆祝,甚至不愿意谈及。
Ideally, result tree construction happens before any output is generated, so a processor might output nothing if such a message is encountered.
理想情况下,结果树应该在生成任何输出之前建立,以便在遇到这样的消息处理程序时可以什么也不输出。
Automating what happens before running your instrumented application is easy, because you have all of the controls.
在运行您的可测试应用软件之前对已经发生的进行自动化操作是很容易的,因为您可以控制一切。
Note that Flex doesn't add a component directly to this list; several intermediate steps occur before that happens.
注意,Flex没有向这个列表直接添加组件;在这发生之前需要经过几个中间步骤。
In Los Angeles, this often happens right before the 10th anniversary, as California law states that after 10 years, a husband can be made to pay alimony indefinitely.
在洛杉矶,以上情况通常发生在锡婚到来之前,因为根据加利福尼亚的法律规定,要拖到结婚十年之后的话,前妻就能要求一笔数目不定的赡养费了。
This graph shows what happens to your weight before, during and after the diet.
而这幅图显示了你过去,现在和后来体重的变化。
Use compensation handlers to add business logic for compensating the actions that have completed before the cancellation event happens.
使用补偿处理程序来添加业务逻辑,来补偿在取消事件发生前就完成的动作。
But sometimes it can be just the opposite: a low rung in the organization requests a change, and the request moves all the way up the ladder to the very top before anything happens.
但有时可能恰好相反:组织中某个较低地位的人请求某个更改,在发生任何事情之前,该请求通过各级管理层一路上报到最高管理层。
For your location, check the time of moon rise and if it happens before or during the eclipse then hopefully you should see something quite spectacular.
就你的观测位置来说,只要你确定好月亮升起的时间,在这之前和这之间你都有希望看到一些壮观的景象。
But before this happens Chinese and Indian buyers - like the Japanese before them - will have to demonstrate an interest in art from beyond their own regions.
但在此之前,中国和印度的买家必须展示出对于本地区以外艺术品的兴趣——就像他们之前的日本买家一样。
Given that it could be trillions of years or more before even that happens, we don't have to worry too much about rogue black holes.
鉴于发生这样的事可能需要数万亿年或更长时间,我们不必过于担心游手好闲的黑洞。
Given that it could be trillions of years or more before even that happens, we don't have to worry too much about rogue black holes.
鉴于发生这样的事可能需要数万亿年或更长时间,我们不必过于担心游手好闲的黑洞。
应用推荐