My Project
|
#include <semaphore.h>
Go to the source code of this file.
Macros | |
#define | SIPC_MAX_SEMAPHORES 512 |
#define | USE_SEM_INIT 0 |
Typedefs | |
typedef sem_t | sipc_sem_t |
Functions | |
int | sipc_semaphore_init (int id, int count) |
int | sipc_semaphore_exists (int id) |
int | sipc_semaphore_acquire (int id) |
int | sipc_semaphore_try_acquire (int id) |
int | sipc_semaphore_get_value (int id) |
int | sipc_semaphore_release (int id) |
int | simpleipc_cmd (char *cmd, int id, int v) |
Variables | |
EXTERN_VAR sipc_sem_t * | semaphore [SIPC_MAX_SEMAPHORES] |
EXTERN_VAR int | sem_acquired [SIPC_MAX_SEMAPHORES] |
#define SIPC_MAX_SEMAPHORES 512 |
Definition at line 10 of file simpleipc.h.
#define USE_SEM_INIT 0 |
Definition at line 12 of file simpleipc.h.
typedef sem_t sipc_sem_t |
Definition at line 27 of file simpleipc.h.
int simpleipc_cmd | ( | char * | cmd, |
int | id, | ||
int | v | ||
) |
Definition at line 167 of file semaphore.c.
int sipc_semaphore_acquire | ( | int | id | ) |
Definition at line 94 of file semaphore.c.
int sipc_semaphore_exists | ( | int | id | ) |
Definition at line 88 of file semaphore.c.
int sipc_semaphore_get_value | ( | int | id | ) |
Definition at line 153 of file semaphore.c.
int sipc_semaphore_init | ( | int | id, |
int | count | ||
) |
Definition at line 31 of file semaphore.c.
int sipc_semaphore_release | ( | int | id | ) |
Definition at line 135 of file semaphore.c.
int sipc_semaphore_try_acquire | ( | int | id | ) |
Definition at line 112 of file semaphore.c.
EXTERN_VAR int sem_acquired[SIPC_MAX_SEMAPHORES] |
Definition at line 32 of file simpleipc.h.
EXTERN_VAR sipc_sem_t* semaphore[SIPC_MAX_SEMAPHORES] |
Definition at line 31 of file simpleipc.h.