Image Component Library (ICL)
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

◆ Locker() [1/4]

icl::utils::Mutex::Locker::Locker ( Mutex m)

Locks the given mutex until the section is leaved.

◆ Locker() [2/4]

icl::utils::Mutex::Locker::Locker ( Mutex m)

Locks the given mutex until the section is leaved.

◆ Locker() [3/4]

ICLUtils_API icl::utils::Mutex::Locker::Locker ( const Lockable l)

Locks given lockable until destruction.

◆ Locker() [4/4]

ICLUtils_API icl::utils::Mutex::Locker::Locker ( const Lockable l)

Locks given lockable until destruction.

◆ ~Locker()

icl::utils::Mutex::Locker::~Locker ( )

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

Member Data Documentation

◆ m

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

wrapped mutex


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