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. | |
Locker (Mutex &m) | |
Locks the given mutex until the section is leaved. | |
ICLUtils_API | Locker (const Lockable *l) |
Locks given lockable until destruction. | |
ICLUtils_API | Locker (const Lockable &l) |
Locks given lockable until destruction. | |
~Locker () | |
unlocks the given mutex (automatically called for objects on the stack) | |
Private Attributes | |
Mutex * | m |
wrapped mutex |
Locks a mutex on the stack (mutex is unlocked when the stack's section is released.
Locks the given mutex until the section is leaved.
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.
unlocks the given mutex (automatically called for objects on the stack)
Mutex* icl::utils::Mutex::Locker::m [private] |
wrapped mutex