Defines | |||
![]() | ![]() | #define | EAGAIN |
![]() | ![]() | an error code. | |
Typedefs | |||
![]() | ![]() | typedef unsigned char | sem_t |
![]() | ![]() | the semaphore type. | |
Functions | |||
![]() | ![]() | int | sem_init (sem_t * sem, int pshared, unsigned int value) |
![]() | ![]() | int | sem_wait (sem_t * sem) |
![]() | ![]() | wait on a semaphore. More... | |
![]() | ![]() | int | sem_trywait (sem_t * sem) |
![]() | ![]() | non-blocking check on a semaphore. More... | |
![]() | ![]() | int | sem_post (sem_t * sem) |
![]() | ![]() | increase semaphore count. More... | |
![]() | ![]() | int | sem_getvalue (sem_t * sem, int *sval) |
![]() | ![]() | int | sem_destroy (sem_t * sem) |
#define EAGAIN () |
an error code.
typedef unsigned char sem_t |
the semaphore type.
int sem_init (sem_t * sem, int pshared, unsigned int value) [inline]
|
int sem_wait (sem_t * sem) |
wait on a semaphore.
sem |
a valid semaphore
|
implemented with wait_event().
int sem_trywait (sem_t * sem) |
non-blocking check on a semaphore.
sem |
a valid semaphore
|
this is IRQ handler safe.
int sem_post (sem_t * sem) |
increase semaphore count.
sem |
a valid semaphore
|
int sem_getvalue (sem_t * sem, int * sval) [inline]
|
int sem_destroy (sem_t * sem) [inline]
|