The sem_release function releases the process’s exclusive control over a specified semaphore. Use this function to release exclusive control over a semaphore created with the function sem_grab.
#include <base/sem.h> int sem_release(SEMAPHORE id);
-1 if an error occurred
0 if no error occurred
SEMAPHORE id is the unique identification number of the semaphore.