next up previous contents index
Next: 18.3.21 pthread_cond_init: Initialize a Up: 18.3 POSIX Threads Reference Previous: 18.3.19 pthread_cond_broadcast: Wakeup all

18.3.20 pthread_cond_destroy: Destroy a condition variable

 

SYNOPSIS

#include <oskit/threads/pthread.h>

int pthread_cond_destroy(pthread_cond_t *cond);

DESCRIPTION

Destroy a condition variable object. The condition variable should be unused, with no threads waiting for it. The memory for the object is left intact; it is up to the caller to deallocate it.

PARAMETERS

cond
A pointer to the condition variable object.

RETURNS

Returns zero on success. EINVAL if there are threads still waiting.

RELATED INFORMATION

pthread_cond_init



University of Utah Flux Research Group