semaphore.h File Reference

Go to the source code of this file.

Data Structures

struct  SEM
 Semaphore. More...

Functions

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

© 2000-2010 by contributors - visit http://www.ethernut.de/