![]() |
Murl Engine API
Version 2025.1
|
The locker class for scoped Mutex locking. More...
#include <murl_system_mutex.h>
The locker class for scoped Mutex locking.
A local instance of the locker will Lock() a mutex at object creation and automatically Unlock() the mutex when the object goes out of scope.
Public Member Functions | |
| Locker (const Mutex &mutex) | |
| The constructor. More... | |
| ~Locker () | |
| The destructor. More... | |
Public Member Functions inherited from Murl::NonCopyable | |
| NonCopyable ()=default | |
| The default constructor. | |
Protected Attributes | |
| const Mutex & | mMutex |
| The reference to the mutex. | |
|
inlineexplicit |
The constructor.
| mutex | The mutex to Mutex::Lock(). |
|
inline |
The destructor.
Mutex::Unlock() the mutex.