Destroys the condition variable.
#include <pthread.h> int pthread_cond_destroy ( pthread_cond_t *cond);
(IN) Points to the condition variable to be destroy.
If successful, returns 0. Otherwise returns a nonzero error code.
The pthread_cond_destory function does not release the memory allocated to the condition variable; however, it does release the memory allocated with the pthread_cond_init function.
To release the memory for the condition variable, use the function paired with the allocate function. For example, if you used malloc to allocate the memory for the condition variable, use free to release the memory.