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