摘要:
1. 首先pthread_cond_wait 的定义是这样的The pthread_cond_wait()andpthread_cond_timedwait()functions are used to block on a condition variable. They are called withmutexlocked by the calling thread or undefined behaviour will result.These functions atomically releasemutexand cause the calling thread to block o 阅读全文