Go to the source code of this file.
Defines | |
| #define | CF_SEM_LOCK(id, sem) (cf_sem_pv(id,-1,sem)) |
| #define | CF_SEM_DOWN(id, sem) (cf_sem_pv(id,-1,sem)) |
| #define | CF_SEM_UNLOCK(id, sem) (cf_sem_pv(id,1,sem)) |
| #define | CF_SEM_UP(id, sem) (cf_sem_pv(id,1,sem)) |
| #define | CF_SEM_WAITZERO(id, sem) (cf_sem_pv(id,0,sem)) |
Functions | |
| int | cf_sem_pv (int id, int operation, int semnum) |
| This function performs semaphore operations. | |
| int | cf_sem_getval (int id, int semnum, int num, unsigned short *val) |
Definition in file semaphores.h.
|
|
This macro decreases the value of a semaphore by 1 Definition at line 40 of file semaphores.h. |
|
|
This macro decreases the value of the semaphore by 1 (equivalent to the P() action) Definition at line 35 of file semaphores.h. |
|
|
This macro increases the value of the semaphore by 1 (equivalent to the V() action) Definition at line 45 of file semaphores.h. |
|
|
This macro increases the value of the semaphore by 1 Definition at line 50 of file semaphores.h. |
|
|
This macro blocks until the specified semaphore has reached a zero value Definition at line 55 of file semaphores.h. |
|
||||||||||||||||||||
|
This function returns the value of the selected semaphore
Definition at line 55 of file semaphores.c. |
|
||||||||||||||||
|
This function performs semaphore operations.
Definition at line 46 of file semaphores.c. |
1.3.5