Nut/OS  4.10.3
API Reference
semaphore.c File Reference
#include <sys/nutdebug.h>
#include <sys/semaphore.h>
#include <sys/event.h>
Include dependency graph for semaphore.c:

Go to the source code of this file.

Functions

void NutSemInit (SEM *sem, short value)
 Initialize an unnamed semaphore to value.
void NutSemWait (SEM *sem)
 Lock a semaphore.
void NutSemPost (SEM *sem)
 Unlock a sempahore.
int NutSemTryWait (SEM *sem)
 Attempt to lock a semaphore without blocking.
int NutSemDestroy (SEM *sem)
 Free resources allocated for a semaphore.