ns-3 Direct Code Execution
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
dce-pthread-cond.cc File Reference
#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 ConditionPthreadCondInitStatic (pthread_cond_t *cond)
static struct ConditionSearchCondition (pthread_cond_t *cond)

Function Documentation

static void CidToCond ( uint32_t  cid,
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 uint32_t CondToCid ( const pthread_cond_t *  cond)
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)
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)
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)

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"  )
static struct Condition* PthreadCondInitStatic ( pthread_cond_t *  cond)
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:

static struct Condition* SearchCondition ( pthread_cond_t *  cond)
staticread