Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
semaphore.h File Reference

Go to the source code of this file.

Macros

#define SEM_FAILED   ((sem_t *) 0)
 

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)
 
sem_tsem_open (const char *name, int oflags,...)
 
int sem_unlink (const char *name)
 
int sem_close (sem_t *sem)
 

Macro Definition Documentation

◆ SEM_FAILED

#define SEM_FAILED   ((sem_t *) 0)

Function Documentation

◆ sem_close()

int sem_close ( sem_t * sem)

◆ 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_open()

sem_t * sem_open ( const char * name,
int oflags,
... )

◆ 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_unlink()

int sem_unlink ( const char * name)

◆ sem_wait()

int sem_wait ( sem_t * semaphore)