不当的同步(Improper synchronization) 失败的互斥(Failed mutual exclusion) 不确定性的程式运作(Non-determinate program operation) ..
基于16个网页-相关网页
如果进行调用的线程并不拥有那个互斥对象,则这个调用可能会失败。
This call might fail if the calling thread does not own the mutex object.
并且绝对不要对您未保持锁的互斥对象进行解锁操作(否则,pthread _ mutex_unlock调用将失败并带一个非零的eperm返回值)。
And you should never unlock a mutex that you don't hold a lock for (otherwise, the pthread_mutex_unlock call will fail with a non-zero EPERM return value).
如果调用线程并不拥有这个互斥信号量,那么这个函数的执行将会失败。
If the calling thread has no ownership of this mutex, this function fails.
应用推荐