[Previous] [Contents] [Next]

pthread_cond_signal()

Unblock thread waiting on condition variable

Synopsis:

#include <pthread.h>

int pthread_cond_signal( pthread_cond_t* cond );

Library:

libc

Description:

The pthread_cond_signal() function unblocks the highest priority thread waiting on the condition variable cond.

If more than one thread at the highest priority is waiting, pthread_cond_signal() unblocks the one that has been waiting the longest.

Returns:

EOK
Success.
EFAULT
A fault occurred trying to access the buffers provided.
EINVAL
Invalid condition variable cond.

Classification:

POSIX 1003.1 (Threads)

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

pthread_cond_broadcast(), pthread_cond_wait(), SyncCondvarSignal().


[Previous] [Contents] [Next]