ns-3 Direct Code Execution
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
dce-semaphore.h File Reference
#include <semaphore.h>
+ Include dependency graph for dce-semaphore.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int dce_sem_destroy (sem_t *sem)
int dce_sem_getvalue (sem_t *sem, int *sval)
int dce_sem_init (sem_t *sem, int pshared, unsigned int value)
int dce_sem_post (sem_t *sem)
int dce_sem_timedwait (sem_t *sem, const struct timespec *abs_timeout)
int dce_sem_trywait (sem_t *sem)
int dce_sem_wait (sem_t *sem)

Function Documentation

int dce_sem_destroy ( sem_t *  sem)
int dce_sem_getvalue ( sem_t *  sem,
int *  sval 
)

Definition at line 218 of file dce-semaphore.cc.

References ns3::Semaphore::count, ns3::Current(), ns3::Thread::err, SearchSemaphore(), and ns3::UtilsGetNodeId().

+ Here is the call graph for this function:

int dce_sem_init ( sem_t *  sem,
int  pshared,
unsigned int  value 
)
int dce_sem_timedwait ( sem_t *  sem,
const struct timespec *  abs_timeout 
)
int dce_sem_trywait ( sem_t *  sem)

Definition at line 155 of file dce-semaphore.cc.

References ns3::Semaphore::count, ns3::Current(), ns3::Thread::err, SearchSemaphore(), and ns3::UtilsGetNodeId().

+ Here is the call graph for this function:

int dce_sem_wait ( sem_t *  sem)