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

Interface for objects, that can be locked using an internal mutex. More...

#include <Lockable.h>

Inheritance diagram for icl::utils::Lockable:
icl::geom::Scene icl::qt::DefineQuadrangleMouseHandler icl::qt::DefineRectanglesMouseHandler icl::qt::DragRectangleMouseHandler icl::utils::ConfigFile

List of all members.

Public Member Functions

 Lockable (bool recursive=false)
 Default constructor.
 Lockable (const Lockable &l)
 copy constructor (does not copy the source mutex)
Lockableoperator= (const Lockable &l)
 assignment operator (does not copy the source mutex)
 ~Lockable ()
 Destructor.
void lock () const
 lock object
void unlock () const
 unlock object
MutexgetMutex () const
 returns mutex of this object

Private Attributes

Mutexm_mutex
 wrapped mutex variable

Detailed Description

Interface for objects, that can be locked using an internal mutex.


Constructor & Destructor Documentation

icl::utils::Lockable::Lockable ( bool  recursive = false) [inline]

Default constructor.

icl::utils::Lockable::Lockable ( const Lockable l) [inline]

copy constructor (does not copy the source mutex)

Destructor.


Member Function Documentation

returns mutex of this object

void icl::utils::Lockable::lock ( ) const [inline]

lock object

Lockable& icl::utils::Lockable::operator= ( const Lockable l) [inline]

assignment operator (does not copy the source mutex)

void icl::utils::Lockable::unlock ( ) const [inline]

unlock object


Member Data Documentation

wrapped mutex variable


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