BeRTOS
sem.h File Reference
#include <cfg/compiler.h>
#include <struct/list.h>

Go to the source code of this file.

Functions

Process synchronization services
void sem_init (struct Semaphore *s)
 Initialize a Semaphore structure.
bool sem_attempt (struct Semaphore *s)
 Attempt to lock a semaphore without waiting.
void sem_obtain (struct Semaphore *s)
 Lock a semaphore.
void sem_release (struct Semaphore *s)
 Release a lock on a previously locked semaphore.

Detailed Description

Definition in file sem.h.