Use cond_destroy(3C) to destroy state that is associated with the condition variable pointed to by cv . The space for storing the condition variable is not freed. For POSIX threads, see pthread_condattr_destroy Syntax.
#include <thread.h> int cond_destroy(cond_t *cv);
cond_destroy() returns 0 if successful. When any of the following conditions is detected, cond_destroy() fails and returns the corresponding value.
EFAULT
Description:cv points to an illegal address.
EBUSY
Description:The system detected an attempt to destroy an active condition variable.