This method allows you to set mutex object attributes.
这个方法允许您设置互斥信号量对象的相关属性。
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.
如果进行调用的线程并不拥有那个互斥对象,则这个调用可能会失败。
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() 会销毁互斥对象,这会释放它可能会持有的资源。
For example, multiple threads can each have a handle to a mutex object.
比如,多线程的每一个线程可以有一个互斥锁的句柄。
If the function succeeds, the return value is a handle to the mutex object.
创建成功之后,返回一个互斥对象句柄。
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.
如果一个命名的互斥对象在本函数调用之前已经存在,则返回已经存在的对象句柄。
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.
如果一个命名的互斥对象在本函数调用之前已经存在,则返回已经存在的对象句柄。
应用推荐