ns-3 Direct Code Execution
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
dce-semaphore.h
Go to the documentation of this file.
1 #ifndef SIMU_SEMAPHORE_H
2 #define SIMU_SEMAPHORE_H
3 
4 #include <semaphore.h>
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
10 int dce_sem_init (sem_t *sem, int pshared, unsigned int value);
11 int dce_sem_destroy (sem_t *sem);
12 int dce_sem_post (sem_t *sem);
13 int dce_sem_wait (sem_t *sem);
14 int dce_sem_trywait (sem_t *sem);
15 int dce_sem_timedwait (sem_t *sem, const struct timespec *abs_timeout);
16 int dce_sem_getvalue (sem_t *sem, int *sval);
17 
18 #ifdef __cplusplus
19 }
20 #endif
21 
22 #endif /* SIMU_SEMAPHORE */