Zephyr API Documentation  3.5.0
A Scalable Open Source RTOS
3.5.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
semaphore.h File Reference
#include <zephyr/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 *ZRESTRICT semaphore, int *ZRESTRICT value)
 
int sem_init (sem_t *semaphore, int pshared, unsigned int value)
 
int sem_post (sem_t *semaphore)
 
int sem_timedwait (sem_t *ZRESTRICT semaphore, struct timespec *ZRESTRICT 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 *ZRESTRICT  semaphore,
int *ZRESTRICT  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 *ZRESTRICT  semaphore,
struct timespec *ZRESTRICT  abstime 
)

◆ sem_trywait()

int sem_trywait ( sem_t semaphore)

◆ sem_wait()

int sem_wait ( sem_t semaphore)