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