mirror of
https://github.com/XMuli/QtExamples.git
synced 2026-10-19 14:31:45 +08:00
ce21262a10
pthread_cond_t g_cond; //条件变量--阻塞线程,等待条件满足 pthread_cond_wait() //阻塞线程,且该函数会对互斥锁解锁;且接解除阻塞之后,对互斥锁进行加锁操作 pthread_cond_signal() //通知阻塞的消费者线程,解除阻塞