[Previous] [Contents] [Next]

pthread_cond_destroy()

Destroy condition variable

Synopsis:

#include <pthread.h>

int pthread_cond_destroy( pthread_cond_t* cond );

Library:

libc

Description:

The pthread_cond_destroy() function destroys the condition variable cond. After being destroyed, a condition variable shouldn't be reused until it's reinitialized using pthread_cond_init().

Returns:

EOK
Success.
EBUSY
Another thread is blocked on the condition variable cond.
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_init(), SyncDestroy()


[Previous] [Contents] [Next]