Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
icl::utils::Mutex::Locker Class Reference

Locks a mutex on the stack (mutex is unlocked when the stack's section is released. More...

#include <Mutex.h>

Inheritance diagram for icl::utils::Mutex::Locker:
icl::utils::Uncopyable

List of all members.

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

Mutexm
 wrapped mutex

Detailed Description

Locks a mutex on the stack (mutex is unlocked when the stack's section is released.


Constructor & Destructor Documentation

Locks the given mutex until the section is leaved.

Locks the given mutex until the section is leaved.

Locks given lockable until destruction.

Locks given lockable until destruction.

unlocks the given mutex (automatically called for objects on the stack)


Member Data Documentation

wrapped mutex


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines