#include "dce-pthread.h"#include "process.h"#include "utils.h"#include "dce-manager.h"#include "ns3/log.h"#include "ns3/assert.h"#include <errno.h>
Include dependency graph for dce-pthread-cond.cc:Go to the source code of this file.
Functions | |
| static void | CidToCond (uint32_t cid, pthread_cond_t *cond) |
| static uint32_t | CondToCid (const pthread_cond_t *cond) |
| int | dce_pthread_cond_broadcast (pthread_cond_t *cond) |
| int | dce_pthread_cond_destroy (pthread_cond_t *cond) |
| int | dce_pthread_cond_init (pthread_cond_t *cond, const pthread_condattr_t *attr) |
| int | dce_pthread_cond_signal (pthread_cond_t *cond) |
| int | dce_pthread_cond_timedwait (pthread_cond_t *cond, pthread_mutex_t *mutex, const struct timespec *abstime) |
| int | dce_pthread_cond_wait (pthread_cond_t *cond, pthread_mutex_t *mutex) |
| int | dce_pthread_condattr_destroy (pthread_condattr_t *attr) |
| int | dce_pthread_condattr_init (pthread_condattr_t *attr) |
| NS_LOG_COMPONENT_DEFINE ("SimuPthreadCond") | |
| static struct Condition * | PthreadCondInitStatic (pthread_cond_t *cond) |
| static struct Condition * | SearchCondition (pthread_cond_t *cond) |
|
static |
Definition at line 26 of file dce-pthread-cond.cc.
Referenced by dce_pthread_cond_destroy(), and PthreadCondInitStatic().
Here is the caller graph for this function:
|
static |
Definition at line 15 of file dce-pthread-cond.cc.
Referenced by SearchCondition().
Here is the caller graph for this function:| int dce_pthread_cond_broadcast | ( | pthread_cond_t * | cond | ) |
Definition at line 114 of file dce-pthread-cond.cc.
References ns3::Current(), ns3::Process::manager, ns3::Thread::process, SearchCondition(), ns3::UtilsGetNodeId(), ns3::Condition::waiting, and ns3::DceManager::Wakeup().
Here is the call graph for this function:| int dce_pthread_cond_destroy | ( | pthread_cond_t * | cond | ) |
Definition at line 86 of file dce-pthread-cond.cc.
References CidToCond(), ns3::Process::conditions, ns3::Current(), ns3::Thread::process, SearchCondition(), and ns3::UtilsGetNodeId().
Here is the call graph for this function:| int dce_pthread_cond_init | ( | pthread_cond_t * | cond, |
| const pthread_condattr_t * | attr | ||
| ) |
Definition at line 72 of file dce-pthread-cond.cc.
References ns3::Current(), PthreadCondInitStatic(), and ns3::UtilsGetNodeId().
Here is the call graph for this function:| int dce_pthread_cond_signal | ( | pthread_cond_t * | cond | ) |
Definition at line 134 of file dce-pthread-cond.cc.
References ns3::Current(), ns3::Process::manager, ns3::Thread::process, SearchCondition(), ns3::UtilsGetNodeId(), ns3::Condition::waiting, and ns3::DceManager::Wakeup().
Here is the call graph for this function:| int dce_pthread_cond_timedwait | ( | pthread_cond_t * | cond, |
| pthread_mutex_t * | mutex, | ||
| const struct timespec * | abstime | ||
| ) |
Definition at line 153 of file dce-pthread-cond.cc.
References ns3::Current(), dce_pthread_mutex_lock(), dce_pthread_mutex_unlock(), ns3::Process::manager, ns3::Thread::process, SearchCondition(), ns3::UtilsGetNodeId(), ns3::UtilsTimespecToTime(), ns3::UtilsTimeToSimulationTime(), ns3::DceManager::Wait(), and ns3::Condition::waiting.
Here is the call graph for this function:| int dce_pthread_cond_wait | ( | pthread_cond_t * | cond, |
| pthread_mutex_t * | mutex | ||
| ) |
Definition at line 180 of file dce-pthread-cond.cc.
References ns3::Current(), dce_pthread_mutex_lock(), dce_pthread_mutex_unlock(), ns3::Process::manager, ns3::Thread::process, SearchCondition(), ns3::UtilsGetNodeId(), ns3::DceManager::Wait(), and ns3::Condition::waiting.
Here is the call graph for this function:| int dce_pthread_condattr_destroy | ( | pthread_condattr_t * | attr | ) |
Definition at line 204 of file dce-pthread-cond.cc.
| int dce_pthread_condattr_init | ( | pthread_condattr_t * | attr | ) |
Definition at line 200 of file dce-pthread-cond.cc.
| NS_LOG_COMPONENT_DEFINE | ( | "SimuPthreadCond" | ) |
|
staticread |
Definition at line 32 of file dce-pthread-cond.cc.
References ns3::Condition::cid, CidToCond(), ns3::Process::conditions, ns3::Current(), ns3::Process::nextCid, and ns3::Thread::process.
Referenced by dce_pthread_cond_init(), and SearchCondition().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticread |
Definition at line 47 of file dce-pthread-cond.cc.
References ns3::Condition::cid, ns3::Process::conditions, CondToCid(), ns3::Current(), ns3::Thread::process, and PthreadCondInitStatic().
Referenced by dce_pthread_cond_broadcast(), dce_pthread_cond_destroy(), dce_pthread_cond_signal(), dce_pthread_cond_timedwait(), and dce_pthread_cond_wait().
Here is the call graph for this function:
Here is the caller graph for this function: