清单3介绍了设置互斥的静态方法。
可以以两种方式设置互斥的类型。
ABD和MDD并不是互斥的。
这些选项并不是互斥的。
设置互斥的另一种方式是使用互斥属性对象。
Another way of setting the mutex kind is by using a mutex attribute object.
这里是创建互斥的示例代码(见下面的6和7)。
Here's the sample code for creating a mutex (see Listings 6 and 7 below).
使用下面的函数解开对互斥的锁定(见清单5)。
只有能访问源代码的人才可能知道这种互斥的情况。
Only those with access to the source code will know about the mutually exclusive arrangement.
这里是获得进程间互斥的另一Win32示例代码。
Here is another Win32 sample code to acquire mutex between processes.
在进程的生命周期内,可能会经历一系列互斥的状态。
During its lifetime, a process may go through a set of mutually exclusive states.
这个函数会获得一个指向它正在尝试锁定的互斥的指针。
This function gets a pointer to the mutex it is trying to lock.
SashForm必须定义成以下两种互斥的样式之一。
SashForms must be defined as one of two mutually exclusive styles.
软ap和adhoc网络在同一块物理网卡上是互斥的。
SoftAP and AD hoc networking are mutually exclusive on the same physical adapter.
相应的获得进程内互斥的Linux示例代码(见清单15)。
An equivalent Linux sample code to acquire mutex within a process (see Listing 15).
这两个邮件客户机并不是互斥的;可以自行选择最适合您需求的邮件客户机。
These two mail clients are not mutually exclusive; you can choose the mail client that best fits your access needs at your current location.
这里是获得进程内互斥的Win32示例代码(见listing14)。
Here is the Win32 sample code to acquire a mutex within a process (see Listing 14).
当启用该级别时,可以使用来自不同级别的不同规则,这些规则本身是互斥的。
It allows you to use different rules from different levels, the rules themselves being mutually exclusive of one another.
这些文件可以全部存在,也可以存在一个,或者都不存在,这取决于应用程序将这些文件视为互斥的还是递增的。
None, one, or all of these files can exist, and it's up to the application to treat the files as mutually exclusive or incremental.
然而与一些人所认为的相反,这些不同的面向服务体系结构(Service - Oriented Architecture,SOA)设计模式不是互斥的。
Contrary to what some might believe; however, these distinct Service-Oriented Architecture (SOA) design patterns are not mutually exclusive.
高质量的教学和研究并不互斥,但它们也不是“天生一对”。
Good teaching and research are not exclusive, but they are also not automatic companions.
这对于等待同一互斥锁的其他线程有不利影响,因为等待时间现在会更长。
For other threads waiting on the same mutex, this has a negative effect, because the wait time is now even longer.
还要注意,两个条件变量使用相同的互斥锁。
互斥有名称,并且,一个给定名称的互斥在同一机器上同一时刻只能存在一个。
Mutexes have names, and only one mutex of a given name can exist on a machine at a time.
这个方法允许您设置互斥信号量对象的相关属性。
确定特定体系结构的变化,比如互斥锁定(mutex locking)。
Identifying architecture-specific changes such as mutex locking.
如果进行调用的线程并不拥有那个互斥对象,则这个调用可能会失败。
This call might fail if the calling thread does not own the mutex object.
如果调用线程并不拥有这个互斥信号量,那么这个函数的执行将会失败。
If the calling thread has no ownership of this mutex, this function fails.
始终应该尽快对已加锁的互斥对象进行解锁(以提高性能)。
You should always unlock a mutex that you've locked as soon as safely possible (to increase performance).
如果可能,在设计程序时决不要锁定一个已经锁定的互斥量。
If possible, just design your program never to re-lock a mutex it already has.
如果可能,在设计程序时决不要锁定一个已经锁定的互斥量。
If possible, just design your program never to re-lock a mutex it already has.
应用推荐