A Discrete-Event Network Simulator
API
ns3::SystemMutexPrivate Class Reference

System-dependent implementation of SystemMutex. More...

Public Member Functions

 SystemMutexPrivate ()
 
 ~SystemMutexPrivate ()
 
void Lock (void)
 Acquire ownership of the mutex. More...
 
void Unlock (void)
 Release ownership of the mutex. More...
 

Private Attributes

pthread_mutex_t m_mutex
 The mutex. More...
 

Detailed Description

System-dependent implementation of SystemMutex.

Definition at line 41 of file unix-system-mutex.cc.

Constructor & Destructor Documentation

ns3::SystemMutexPrivate::SystemMutexPrivate ( )

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

References m_mutex, and NS_LOG_FUNCTION.

ns3::SystemMutexPrivate::~SystemMutexPrivate ( )

Definition at line 75 of file unix-system-mutex.cc.

References m_mutex, and NS_LOG_FUNCTION.

Member Function Documentation

void ns3::SystemMutexPrivate::Lock ( void  )

Acquire ownership of the mutex.

Definition at line 82 of file unix-system-mutex.cc.

References m_mutex, NS_FATAL_ERROR, and NS_LOG_FUNCTION.

Referenced by ns3::SystemMutex::Lock().

+ Here is the caller graph for this function:

void ns3::SystemMutexPrivate::Unlock ( void  )

Release ownership of the mutex.

Definition at line 96 of file unix-system-mutex.cc.

References m_mutex, NS_FATAL_ERROR, and NS_LOG_FUNCTION.

Referenced by ns3::SystemMutex::Unlock().

+ Here is the caller graph for this function:

Member Data Documentation

pthread_mutex_t ns3::SystemMutexPrivate::m_mutex
private

The mutex.

Definition at line 49 of file unix-system-mutex.cc.

Referenced by Lock(), SystemMutexPrivate(), Unlock(), and ~SystemMutexPrivate().


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