PTHREAD_COND_DESTROY(3P) BSD PTHREAD_COND_DESTROY(3P)
NAME
pthread_cond_destroy - Destroys a condition variable
SYNOPSIS
#include <pthread.h>
int pthread_cond_destroy (cond)
pthread_cond_t *cond;
DESCRIPTION
The pthread_cond_destroy function deletes the specified condition
variable, which allows the resources for the cond argument to be
reclaimed.
The cond argument specifies the address of the ID of the condition
variable to be deleted.
NOTES
This interface is based on draft 4 of the IEEE P1003.4a standard, and
will be changed to conform to the final version.
DIAGNOSTICS
Upon successful completion, the cond argument is set to an illegal value,
and a value of 0 (zero) is returned. Otherwise, -1 is returned and errno
is set to indicate the error.
ERRORS
If the pthread_cond_destroy function fails, errno may be set to one of
the following values:
[EBUSY] A thread is currently executing a pthread_cond_wait() or
pthread_cond_timedwait() function on the specified condition
variable.
[EINVAL] The value specified by the cond argument is invalid.
SEE ALSO
pthread_cond_init(3P), pthread_cond_signal(3P),
pthread_cond_broadcast(3P), pthread_cond_wait(3P),
pthread_cond_timedwait(3P)