ChibiOS/RT Architecture - Reference Manual - Guides |
Semaphores code. More...
#include "ch.h"
Go to the source code of this file.
Functions | |
void | chSemInit (Semaphore *sp, cnt_t n) |
Initializes a semaphore with the specified counter value. | |
void | chSemReset (Semaphore *sp, cnt_t n) |
Performs a reset operation on the semaphore. | |
void | chSemResetI (Semaphore *sp, cnt_t n) |
Performs a reset operation on the semaphore. | |
msg_t | chSemWait (Semaphore *sp) |
Performs a wait operation on a semaphore. | |
msg_t | chSemWaitS (Semaphore *sp) |
Performs a wait operation on a semaphore. | |
msg_t | chSemWaitTimeout (Semaphore *sp, systime_t time) |
Performs a wait operation on a semaphore with timeout specification. | |
msg_t | chSemWaitTimeoutS (Semaphore *sp, systime_t time) |
Performs a wait operation on a semaphore with timeout specification. | |
void | chSemSignal (Semaphore *sp) |
Performs a signal operation on a semaphore. | |
void | chSemSignalI (Semaphore *sp) |
Performs a signal operation on a semaphore. | |
msg_t | chSemSignalWait (Semaphore *sps, Semaphore *spw) |
Performs atomic signal and wait operations on two semaphores. |
Semaphores code.
Definition in file chsem.c.