不用害怕,如果您想在互斥以外做一些奇特的事情,比如流处理或延迟呈现,您仍然可以访问原始的mongrel请求。
Fear not, you'll still have access to the raw mongrel request if you want to do fancy stuff like streaming or deferred rendering outside the mutex.
一次只能有一个任务持有互斥锁,并且只有这个任务可以解锁互斥锁。
Only one task may hold the mutex at a time, and only this task can unlock the mutex.
那个错误不是归咎于被锁定的互斥。
清单3介绍了设置互斥的静态方法。
ABD和MDD并不是互斥的。
互斥现象能由使用信号灯或互斥完成。
Mutual exclusion can be achieved with the use of a semaphore or mutex.
当一个互斥锁被锁定后,它必须被解锁。
hHandle是指向互斥句柄的指针。
使用互斥对象能够保证这种情形不会发生。
当互斥被锁定或者发生错误时,函数返回。
The function returns when the mutex is locked, or if an error occurred.
这将创建一个新的互斥锁并初始化其结构。
函数会等待互斥被解锁。
顺序、并行、同步、互斥选择、简单聚合。
Sequence, parallel split, synchronization, exclusive choice, simple merge.
在内核中可以使用互斥锁来实现信号量行为。
Mutexes are available in the kernel as a way to accomplish semaphore behavior.
锁定操作的设置涉及分配一个预先锁定的互斥锁。
The setup for a lock operation involves allocation of a prelocked mutex.
互斥量对象必须先被声明;声明后还必须初始化。
The mutex object must be declared; once declared, it must be initialized.
这个方法允许您设置互斥信号量对象的相关属性。
也叫互斥信号。
互斥对象是线程程序必需的工具,但它们并非万能的。
Mutexes are necessary tools for threaded programs, but they can't do everything.
设置互斥的另一种方式是使用互斥属性对象。
Another way of setting the mutex kind is by using a mutex attribute object.
这个函数会获得一个指向它正在尝试锁定的互斥的指针。
This function gets a pointer to the mutex it is trying to lock.
主线程:锁定互斥量并增量threadcount。
就这点而言,您可能想知道这两个虚拟化方法是否互斥。
At this point though, you might be wondering if you these two virtualization approaches are mutually exclusive.
然而,易变域的同步中会有一个漏洞,它可能破坏互斥。
There's a loophole when synchronizing on a mutable field, however, which can break down mutual exclusion.
如果碰巧已经锁定了互斥对象,调用者将进入睡眠状态。
If the mutex already happens to be locked, the caller will go to sleep.
所有GUI用户都熟悉单选按钮:定义一系列互斥选项。
Radio buttons are familiar to all GUI users: a series of mutually exclusive options are defined.
如果锁可用,则获取锁,执行互斥锁动作,然后释放锁。
When the lock is available, it is taken, the mutually-exclusive action is performed, and then the lock is released.
代码可以反复对互斥对象锁定和解锁,以检查值的任何变化。
Your code could repeatedly lock and unlock the mutex, checking for any changes to the value.
它还会检查互斥在那个时刻是不是解除锁定的(见清单9)。
It also checks whether the mutex is unlocked at that time (see Listing 9).
始终应该尽快对已加锁的互斥对象进行解锁(以提高性能)。
You should always unlock a mutex that you've locked as soon as safely possible (to increase performance).
应用推荐