33 #ifndef _FREERTOS_POSIX_SEMAPHORE_H_ 34 #define _FREERTOS_POSIX_SEMAPHORE_H_
int sem_timedwait(sem_t *sem, const struct timespec *abstime)
Lock a semaphore with timeout.
Definition: FreeRTOS_POSIX_semaphore.c:131
int sem_wait(sem_t *sem)
Lock a semaphore.
Definition: FreeRTOS_POSIX_semaphore.c:207
int sem_destroy(sem_t *sem)
Destroy an unnamed semaphore.
Definition: FreeRTOS_POSIX_semaphore.c:51
int sem_init(sem_t *sem, int pshared, unsigned value)
Initialize an unnamed semaphore.
Definition: FreeRTOS_POSIX_semaphore.c:77
void * sem_t
Semaphore type.
Definition: semaphore.h:42
int sem_getvalue(sem_t *sem, int *sval)
Get the value of a semaphore.
Definition: FreeRTOS_POSIX_semaphore.c:64
int sem_post(sem_t *sem)
Unlock a semaphore.
Definition: FreeRTOS_POSIX_semaphore.c:119
represents an elapsed time
Definition: time.h:78
int sem_trywait(sem_t *sem)
Lock a semaphore if available.
Definition: FreeRTOS_POSIX_semaphore.c:185