freesema(D3X)freesema(D3X)NAMEfreesema - free the resources associated with a semaphore
SYNOPSIS
#include "sys/types.h"
#include "sys/sema.h"
freesema(sema_t *semap);
DESCRIPTIONfreesema frees all resources associated with a semaphore. Use freesema to
free dynamically allocated semaphores that are no longer needed. If the
semaphores are part of a dynamically allocated structure, you must use
freesema to free the semaphores before you free the structure containing
the semaphores.
For freesema, semap is a pointer to the semaphore you want to deallocate.
Return Values
None
See Also
cpsema(D3X), cvsema(D3X), psema(D3X), vsema(D3X), sleep(D3), vpsema(D3X),
SLEEP_ALLOC(D3), SLEEP_DEALLOC(D3)
Page 1