Deletes a condition variable.
pthread_cond_destroy( cond );
Argument Data Type Accesscond opaque pthread_cond_t read
int pthread_cond_destroy ( pthread_cond_t *cond);
The results of this routine are unpredictable if the condition variable 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 broadcasted when it is deleted.
Return Error Description0 Successful completion. -1 [EINVAL] The value specified by cond is invalid. -1 [EBUSY] A thread is currently executing a pthread_cond_wait or pthread_cond_ timedwait on the condition variable specified in cond.