cnd_broadcast

cnd_broadcast

Defined in header <threads.h>
int cnd_broadcast( cnd_t *cond );
(since C11)

Unblocks all thread that currently wait on condition variable pointed to by cond. If no threads are blocked, does nothing and returns thrd_success.

Parameters

cond - pointer to a condition variable

Return value

thrd_success if successful, thrd_error otherwise.

References

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

See also

(C11)
unblocks one thread blocked on a condition variable
(function)
C++ documentation for notify_all

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/c/thread/cnd_broadcast

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部