cond_destroy destroys the condition variable cond.
This includes invalidating cond and freeing any
associated implementation-allocated dynamic resources.
Parameters
cond
pointer to the condition variable to destroy
Return values
cond_destroy returns zero for success
and an error number for failure.
Errors
If any of the following conditions is detected,
cond_destroy returns the corresponding value: