名前空間
変種
操作

cnd_broadcast

提供: cppreference.com
< c‎ | thread
ヘッダ <threads.h> で定義
int cnd_broadcast( cnd_t *cond );
(C11以上)

cond の指す条件変数で現在待機しているスレッドをすべてブロック解除します。 ブロックしているスレッドがなければ、何もせずに thrd_success を返します。

目次

[編集] 引数

cond - 条件変数変数を指すポインタ

[編集] 戻り値

成功した場合は thrd_success、そうでなければ thrd_error

[編集] 参考文献

  • C11 standard (ISO/IEC 9899:2011):
  • 7.26.3.1 The cnd_broadcast function (p: 378)

[編集] 関連項目

条件変数でブロックされているスレッドをひとつブロック解除します
(関数) [edit]
condition_variable::notify_allC++リファレンス
condition_variable_any::notify_allC++リファレンス