?
This document uses PHP Chinese website manual Release
在頭文件<threads.h>中定義 | ||
---|---|---|
int cnd_signal(cnd_t * cond); | (自C11以來) |
解除當(dāng)前在cond指向的條件變量上等待的一個線程。 如果沒有線程被阻塞,則不執(zhí)行任何操作并返回thrd_success。
cond | - | 指向條件變量的指針 |
---|
如果成功則返回 thrd_success,否則返回 thrd_error。
C11標(biāo)準(zhǔn)(ISO / IEC 9899:2011):
7.26.3.4 cnd_signal 函數(shù)(p:379)
cnd_broadcast(C11) | 解除阻塞條件變量(功能)上的所有線程 |
---|