Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
semaphore.h File Reference
#include <posix/time.h>
#include "posix_types.h"

Go to the source code of this file.

Functions

int sem_destroy (sem_t *semaphore)
 
int sem_getvalue (sem_t *restrict semaphore, int *restrict value)
 
int sem_init (sem_t *semaphore, int pshared, unsigned int value)
 
int sem_post (sem_t *semaphore)
 
int sem_timedwait (sem_t *restrict semaphore, struct timespec *restrict abstime)
 
int sem_trywait (sem_t *semaphore)
 
int sem_wait (sem_t *semaphore)
 

Function Documentation

◆ sem_destroy()

int sem_destroy ( sem_t *  semaphore)

◆ sem_getvalue()

int sem_getvalue ( sem_t *restrict  semaphore,
int *restrict  value 
)

◆ sem_init()

int sem_init ( sem_t *  semaphore,
int  pshared,
unsigned int  value 
)

◆ sem_post()

int sem_post ( sem_t *  semaphore)

◆ sem_timedwait()

int sem_timedwait ( sem_t *restrict  semaphore,
struct timespec *restrict  abstime 
)

◆ sem_trywait()

int sem_trywait ( sem_t *  semaphore)

◆ sem_wait()

int sem_wait ( sem_t *  semaphore)