Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
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

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

Mutexm
 wrapped mutex More...
 

Additional Inherited Members

- Protected Member Functions inherited from icl::utils::Uncopyable
 Uncopyable ()
 Empty base constructor. More...
 

Detailed Description

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

Constructor & Destructor Documentation

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)

Member Data Documentation

Mutex* icl::utils::Mutex::Locker::m
private

wrapped mutex


The documentation for this class was generated from the following file: