sema_destroy

Frees the specified semaphore.

Library:LibC
Classification:UNIX International
Service:Synchronization

Syntax

  #include <synch.h>
   
  int   sema_destroy   (
     sema_t   *sp );
  

Parameters

sp

(IN) Points to the semaphore to free.

Return Values

Returns 0; no error conditions have been defined:

Remarks

The semaphore being destroyed must have been allocated by calling sema_init.

See Also