cond_destroy

Destroys the condition variable.

Library:LibC
Classification:UNIX International
Service:Synchronization

Syntax

  #include <synch.h>
   
  int   cond_destroy   (
     cond_t   *cvp );
  

Parameters

cvp

(IN) Points to the condition variable to be destroy.

Return Values

Returns 0. No error conditions have been defined.

Remarks

The cond_destory function does not release the memory allocated to the condition variable; however, it does release the memory allocated with the 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.

See Also