Adelsbach Enhanced Threading Library

Manual Pages (DD-00013-001)

Enhanced Threading Library > cnd_signal (3)
HTML TXT PDF PS
cnd_signal(3) Library Functions Manual cnd_signal(3)

cnd_signalsignal a condition.

library “threads”
#include <threads.h>

int
cnd_signal(cnd_t *cnd);

The function () will wake up exactly one thread waiting on the condition variable cnd for it to reread the condition variable.

The thread calling () does not need to have acquired the condition variable signaled.

Upon success cnd_signal() returns thrd_success, otherwise thrd_error will be returned.

cnd_init(3) cnd_destroy(3) cnd_broadcast(3) cnd_timedwait(3) cnd_wait(3)

The cnd_signal() function first appeared in the C11 standard ISO/IEC 9899:2011.

Jan Adelsbach <jan@jadelsbach.de>

May 9, 2020 Debian