cnd_broadcast - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# cnd_broadcast

From cppreference.com
< c‎ | thread

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`.

### [edit] Parameters

cond | - | pointer to a condition variable

### [edit] Return value

thrd_success if successful, thrd_error otherwise.

### [edit] See also

cnd_signal (C11) | unblocks one thread blocked on a condition variable (function) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=c/thread/cnd_broadcast&oldid=63539"