The pthread_cond_broadcast() and pthread_cond_signal() functions shall have no effect if there are no threads currently blocked on cond.
If no thread is blocked on the condition, the subroutine succeeds, but the signalling of the condition is not held. The next thread calling pthread_cond_wait will be blocked.
pthread_cond_broadcast() and pthread_cond_signal()
最新推荐文章于 2023-07-20 00:56:20 发布