When you call pthread_mutex_trylock() you'll attempt to lock the mutex.
调用 pthread_mutex_trylock() 时将尝试锁定互斥对象。
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.
如果可能,在设计程序时决不要锁定一个已经锁定的互斥量。
应用推荐