![]() |
Image Component Library (ICL)
|
Locks a mutex on the stack (mutex is unlocked when the stack's section is released. More...
#include <Mutex.h>
Public Member Functions | |
| Locker (Mutex *m) | |
| Locks the given mutex until the section is leaved. More... | |
| Locker (Mutex &m) | |
| Locks the given mutex until the section is leaved. More... | |
| ICLUtils_API | Locker (const Lockable *l) |
| Locks given lockable until destruction. More... | |
| ICLUtils_API | Locker (const Lockable &l) |
| Locks given lockable until destruction. More... | |
| ~Locker () | |
| unlocks the given mutex (automatically called for objects on the stack) More... | |
Private Attributes | |
| Mutex * | m |
| wrapped mutex More... | |
Additional Inherited Members | |
Protected Member Functions inherited from icl::utils::Uncopyable | |
| Uncopyable () | |
| Empty base constructor. More... | |
Locks a mutex on the stack (mutex is unlocked when the stack's section is released.
| icl::utils::Mutex::Locker::Locker | ( | Mutex * | m | ) |
Locks the given mutex until the section is leaved.
| icl::utils::Mutex::Locker::Locker | ( | Mutex & | m | ) |
Locks the given mutex until the section is leaved.
| ICLUtils_API icl::utils::Mutex::Locker::Locker | ( | const Lockable * | l | ) |
Locks given lockable until destruction.
| ICLUtils_API icl::utils::Mutex::Locker::Locker | ( | const Lockable & | l | ) |
Locks given lockable until destruction.
| icl::utils::Mutex::Locker::~Locker | ( | ) |
unlocks the given mutex (automatically called for objects on the stack)
|
private |
wrapped mutex
1.8.15