A Discrete-Event Network Simulator
API
Public Member Functions | Private Attributes | List of all members
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

◆ SystemMutexPrivate()

ns3::SystemMutexPrivate::SystemMutexPrivate ( )

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

References m_mutex, and NS_LOG_FUNCTION.

◆ ~SystemMutexPrivate()

ns3::SystemMutexPrivate::~SystemMutexPrivate ( )

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

References m_mutex, and NS_LOG_FUNCTION.

Member Function Documentation

◆ Lock()

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().

◆ Unlock()

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().

Member Data Documentation

◆ m_mutex

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: