Tizen RT Libs&Environment  v1.0 D5
semaphore.h File Reference

Semaphore APIs. More...

#include <tinyara/config.h>
#include <stdint.h>
#include <limits.h>
Include dependency graph for semaphore.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  semholder_s
 Structure of semholder. More...
 
struct  sem_s
 Structure of generic semaphore. More...
 

Macros

#define EXTERN   extern
 
#define SEMHOLDER_INITIALIZER   {NULL, NULL, 0}
 
#define SEM_INITIALIZER(c)   {(c), NULL} /* semcount, hhead */
 Sem initializer. More...
 

Typedefs

typedef struct sem_s sem_t
 

Functions

int sem_init (FAR sem_t *sem, int pshared, unsigned int value)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
int sem_destroy (FAR sem_t *sem)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
int sem_wait (FAR sem_t *sem)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
int sem_timedwait (FAR sem_t *sem, FAR const struct timespec *abstime)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
int sem_trywait (FAR sem_t *sem)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
int sem_post (FAR sem_t *sem)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
int sem_getvalue (FAR sem_t *sem, FAR int *sval)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 

Detailed Description

Semaphore APIs.

Definition in file semaphore.h.

Macro Definition Documentation

#define EXTERN   extern

Definition at line 77 of file semaphore.h.

#define SEMHOLDER_INITIALIZER   {NULL, NULL, 0}

Definition at line 105 of file semaphore.h.

Typedef Documentation

typedef struct sem_s sem_t

Definition at line 131 of file semaphore.h.