CFx SDK Documentation  2023 SP0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OdMutexPtrAutoLock Class Reference

#include <ThreadsCounter.h>

Public Member Functions

 OdMutexPtrAutoLock (OdMutex *mutex)
 
 ~OdMutexPtrAutoLock ()
 
void lock ()
 
void unlock ()
 

Protected Member Functions

 OdMutexPtrAutoLock ()
 
void set (bool bEnable)
 

Protected Attributes

OdMutexm_mutex
 

Detailed Description

This class implements AutoLock object for OdMutex*.

Remarks
Mutex objects are used to synchronize between threads and across processes.

MutexAutoLock objects automatically lock the specified OdMutex object when constructed and unlock it when destroyed.

Corresponding C++ library: Root <group Other_Classes>

Definition at line 64 of file ThreadsCounter.h.

Constructor & Destructor Documentation

◆ OdMutexPtrAutoLock() [1/2]

OdMutexPtrAutoLock::OdMutexPtrAutoLock ( OdMutex mutex)
inline
Parameters
mutex[in] Mutex to be Autolocked.

Definition at line 69 of file ThreadsCounter.h.

◆ ~OdMutexPtrAutoLock()

OdMutexPtrAutoLock::~OdMutexPtrAutoLock ( )
inline

Definition at line 74 of file ThreadsCounter.h.

◆ OdMutexPtrAutoLock() [2/2]

OdMutexPtrAutoLock::OdMutexPtrAutoLock ( )
inlineprotected

Definition at line 83 of file ThreadsCounter.h.

Member Function Documentation

◆ lock()

void OdMutexPtrAutoLock::lock ( )
inline

Definition at line 79 of file ThreadsCounter.h.

◆ set()

void OdMutexPtrAutoLock::set ( bool  bEnable)
inlineprotected

Definition at line 84 of file ThreadsCounter.h.

◆ unlock()

void OdMutexPtrAutoLock::unlock ( )
inline

Definition at line 80 of file ThreadsCounter.h.

Member Data Documentation

◆ m_mutex

OdMutex* OdMutexPtrAutoLock::m_mutex
protected

Definition at line 96 of file ThreadsCounter.h.


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