W3cubDocs

/C

cnd_signal

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

Unblocks one thread that currently waits 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.4 The cnd_signal function (p: 379)

See also

(C11)
unblocks all threads blocked on a condition variable
(function)
C++ documentation for notify_one

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