可以以两种方式设置互斥的类型。
这些选项并不是互斥的。
这里是创建互斥的示例代码(见下面的6和7)。
Here's the sample code for creating a mutex (see Listings 6 and 7 below).
只有能访问源代码的人才可能知道这种互斥的情况。
Only those with access to the source code will know about the mutually exclusive arrangement.
在进程的生命周期内,可能会经历一系列互斥的状态。
During its lifetime, a process may go through a set of mutually exclusive states.
概览模式和聚焦模式是互斥的。
高质量的教学和研究并不互斥,但它们也不是“天生一对”。
Good teaching and research are not exclusive, but they are also not automatic companions.
还要注意,两个条件变量使用相同的互斥锁。
那就意味着给请求加一个互斥是无用的开销。
That means that wrapping a mutex around the request is useless overhead.
如果可能,在设计程序时决不要锁定一个已经锁定的互斥量。
If possible, just design your program never to re-lock a mutex it already has.
任何对一组事件的访问都由一个互斥对象来保护。
Any access to a collection of events is guarded by a mutual exclusion object.
比如,多线程的每一个线程可以有一个互斥锁的句柄。
For example, multiple threads can each have a handle to a mutex object.
表现互斥现象的数据结构,也被当作二元信号灯。
A data structure for mutual exclusion, also known as a binary semaphore.
基于互斥锁的方法的问题。
最后,可以通过调用mutex_is_locked检查互斥锁的状态。
Finally, you can check the status of a mutex through a call to mutex_is_locked.
增强的命令不需要像以前的方法一样使用互斥型锁。
The enhanced commands do not require an exclusive lock like previous methods.
增强的命令不需要像以前的方法一样使用互斥型锁。
The enhanced commands do not require an exclusive lock like previous methods.
应用推荐