pthread_cond_destroy(3-thr) pthread_cond_destroy(3-thr)
NAME
pthreadconddestroy - deletes a condition variable
SYNOPSIS
#include <pthread.h>
int pthreadconddestroy(pthreadcondt *cond);
PARAMETERS
cond Condition variable deleted.
DESCRIPTION
The pthreadconddestroy() routine deletes a condition variable. Call
this routine when a condition variable is no longer referenced. The
effect of calling this routine is to give permission to reclaim
storage for the condition variable.
The results of this routine are unpredictable if the condition vari-
able specified in cond does not exist.
The results of this routine are also unpredictable if there are
threads waiting for the specified condition variable to be signaled or
broadcast when it is deleted.
RETURN VALUES
If the function fails, errno may be set to one of the following
values:
EINVAL The value specified by cond is invalid.
EBUSY A thread is currently executing a pthreadcondtimedwait()
routine or pthreadcondwait() on the condition variable
specified in cond.
SEE ALSO
pthreadcondbroadcast(3-thr), pthreadcondinit(3-thr),
pthreadcondsignal(3-thr), pthreadcondtimedwait(3-thr),
pthreadcondwait(3-thr).
Page 1 Reliant UNIX 5.44 Printed 11/98