This method allows you to set mutex object attributes.
这个方法允许您设置互斥信号量对象的相关属性。
For example, multiple threads can each have a handle to a mutex object.
比如,多线程的每一个线程可以有一个互斥锁的句柄。
The mutex object must be declared; once declared, it must be initialized.
互斥量对象必须先被声明;声明后还必须初始化。
This call might fail if the calling thread does not own the mutex object.
如果进行调用的线程并不拥有那个互斥对象,则这个调用可能会失败。
To free a mutex object that is no longer needed, pthread_mutex_destroy is used.
要释放一个不再需要的互斥信号量对象,可以使用pthread _ mutex_destroy 。
If the function succeeds, the return value is a handle to the mutex object.
创建成功之后,返回一个互斥对象句柄。
This function takes the handle to the mutex object and waits until it is signaled or timeout occurs.
这个函数会使用一个互斥对象的句柄,并一直等待,直到它变为有信号状态或超时为止。
The pthread_mutex_destroy() in Linux destroys a mutex object, which frees the resources it might hold.
在Linux 中,pthread_mutex_destroy() 会销毁互斥对象,这会释放它可能会持有的资源。
When created, a VxWorks mutex object accepts a Boolean parameter that indicates whether priority inheritance should be performed by the mutex.
VxWorks的互斥锁在创建的时候,可以用一个布尔参数表示是否要优先级继承。
Multiple threads of control can simultaneously try to push data to the queue or remove data, so you need a mutex object to manage the synchronization.
多个控制线程可以同时在队列中添加数据或删除数据,所以需要用互斥锁对象管理同步。
If the named mutex object existed before the function call, the function returns a handle to the existing object and GetLastError returns ERROR_ALREADY_EXISTS.
如果一个命名的互斥对象在本函数调用之前已经存在,则返回已经存在的对象句柄。
Another way of setting the mutex kind is by using a mutex attribute object.
设置互斥的另一种方式是使用互斥属性对象。
Once you have it, no one can take it away from you until you put it down. The process of picking up the unique object is called locking, or acquiring, the mutex.
占有这个惟一物体的过程就叫做锁定或者获得互斥量。
POSIX provides the mutex function to create critical sections that enforce exclusive access to an object (a piece of memory) by a single thread.
POSIX提供了互斥函数来创建临界区,用于实施单线程对对象(一块内存)的独占访问。
POSIX provides the mutex function to create critical sections that enforce exclusive access to an object (a piece of memory) by a single thread.
POSIX提供了互斥函数来创建临界区,用于实施单线程对对象(一块内存)的独占访问。
应用推荐