sem.c File Reference
Semaphore based synchronization services. More...
#include "sem.h"#include <cfg/debug.h>#include <cpu/irq.h>#include <kern/proc.h>#include <kern/proc_p.h>#include <kern/signal.h>Go to the source code of this file.
Functions | |
| 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
Semaphore based synchronization services.
Definition in file sem.c.
