The CYIAutoReadMutex is a helper class that simplifies the locking and unlocking of read/write mutexes based on the RAII principle. The constructor will perform a read-lock while the destructor automatically perform an unlock.
- See also
- CYIAutoWriteMutex
-
CYIReadWriteMutex
-
CYISpinLock
-
yi::deprecated::CYIAutoSpinLock
#include <thread/YiAutoReadMutex.h>
◆ CYIAutoReadMutex()
◆ ~CYIAutoReadMutex()
CYIAutoReadMutex::~CYIAutoReadMutex |
( |
| ) |
|
|
inline |
Destroys the CYIAutoReadMutex and unlocks m_rMutex that was locked by the constructor.
◆ Relock()
bool CYIAutoReadMutex::Relock |
( |
| ) |
|
|
inline |
◆ Unlock()
bool CYIAutoReadMutex::Unlock |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: