Close a named semaphore
#include <semaphore.h> int sem_close( sem_t * sem );
libc
The sem_close() function closes the named semaphore sem opened by sem_open(), releasing any system resources associated with the sem.
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |
The mqueue manager must be running for applications to use named semaphores.
sem_init(), sem_open(), sem_unlink()