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.
{
if (somethingHappens)
{
return false;
}
return true;
}
◆ Locker()
Murl::System::Locker::Locker |
( |
const Mutex & |
mutex | ) |
|
|
inline |
The constructor.
- Parameters
-
◆ ~Locker()
Murl::System::Locker::~Locker |
( |
| ) |
|
|
inline |
◆ mMutex
const Mutex& Murl::System::Locker::mMutex |
|
protected |
The reference to the mutex.
The documentation for this class was generated from the following file: