A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::SystemConditionPrivate Class Reference

Public Member Functions

 SystemConditionPrivate ()
 
 ~SystemConditionPrivate ()
 
void Broadcast (void)
 
bool GetCondition (void)
 
void SetCondition (bool condition)
 
void Signal (void)
 
bool TimedWait (uint64_t ns)
 
void Wait (void)
 

Static Public Attributes

static const uint64_t NS_PER_SEC = (uint64_t)1000000000
 

Private Attributes

pthread_cond_t m_cond
 
bool m_condition
 
pthread_mutex_t m_mutex
 

Detailed Description

Definition at line 32 of file unix-system-condition.cc.

Constructor & Destructor Documentation

ns3::SystemConditionPrivate::SystemConditionPrivate ( )

Definition at line 52 of file unix-system-condition.cc.

References m_cond, m_condition, m_mutex, and NS_LOG_FUNCTION.

ns3::SystemConditionPrivate::~SystemConditionPrivate ( )

Definition at line 77 of file unix-system-condition.cc.

References m_cond, m_mutex, and NS_LOG_FUNCTION.

Member Function Documentation

void ns3::SystemConditionPrivate::Broadcast ( void  )

Definition at line 109 of file unix-system-condition.cc.

References m_cond, m_mutex, and NS_LOG_FUNCTION.

Referenced by ns3::SystemCondition::Broadcast().

+ Here is the caller graph for this function:

bool ns3::SystemConditionPrivate::GetCondition ( void  )

Definition at line 92 of file unix-system-condition.cc.

References m_condition, and NS_LOG_FUNCTION.

Referenced by ns3::SystemCondition::GetCondition().

+ Here is the caller graph for this function:

void ns3::SystemConditionPrivate::SetCondition ( bool  condition)

Definition at line 85 of file unix-system-condition.cc.

References m_condition, and NS_LOG_FUNCTION.

Referenced by ns3::SystemCondition::SetCondition().

+ Here is the caller graph for this function:

void ns3::SystemConditionPrivate::Signal ( void  )

Definition at line 99 of file unix-system-condition.cc.

References m_cond, m_mutex, and NS_LOG_FUNCTION.

Referenced by ns3::SystemCondition::Signal().

+ Here is the caller graph for this function:

bool ns3::SystemConditionPrivate::TimedWait ( uint64_t  ns)

Definition at line 133 of file unix-system-condition.cc.

References m_cond, m_condition, m_mutex, NS_LOG_FUNCTION, and NS_PER_SEC.

Referenced by ns3::SystemCondition::TimedWait().

+ Here is the caller graph for this function:

void ns3::SystemConditionPrivate::Wait ( void  )

Definition at line 119 of file unix-system-condition.cc.

References m_cond, m_condition, m_mutex, and NS_LOG_FUNCTION.

Referenced by ns3::SystemCondition::Wait().

+ Here is the caller graph for this function:

Member Data Documentation

pthread_cond_t ns3::SystemConditionPrivate::m_cond
private
bool ns3::SystemConditionPrivate::m_condition
private
pthread_mutex_t ns3::SystemConditionPrivate::m_mutex
private
const uint64_t ns3::SystemConditionPrivate::NS_PER_SEC = (uint64_t)1000000000
static

Definition at line 34 of file unix-system-condition.cc.

Referenced by TimedWait().


The documentation for this class was generated from the following file: