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
- CYIAutoMutex
-
CYIAutoSpinLock
-
CYIAutoWriteMutex
-
CYIMutex
-
CYIReadWriteMutex
-
CYISpinLock
#include <thread/YiAutoReadMutex.h>
| CYIAutoReadMutex::~CYIAutoReadMutex |
( |
| ) |
|
|
inline |
Destroys the CYIAutoReadMutex and unlocks m_rMutex that was locked by the constructor.
| bool CYIAutoReadMutex::Relock |
( |
| ) |
|
|
inline |
| bool CYIAutoReadMutex::Unlock |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: