sigx::lockable_base< T_mutex > Struct Template Reference
[Threadsafety]

The base for all lockables, template specialized for a specific lock, e.g. a boost::mutex. More...

#include <lockable.h>

Inheritance diagram for sigx::lockable_base< T_mutex >:

sigx::noncopyable

Public Types

typedef T_mutex mutex_type

Public Member Functions

mutex_typemutex () const throw ()

Protected Member Functions

 lockable_base ()

Protected Attributes

mutex_type m_mutex

Detailed Description

template<typename T_mutex>
struct sigx::lockable_base< T_mutex >

The base for all lockables, template specialized for a specific lock, e.g. a boost::mutex.

Lockables are wrapper objects pairing a certain type together with a mutex type. Mutex objects of type T_mutex must be default constructible.


Member Typedef Documentation

template<typename T_mutex>
typedef T_mutex sigx::lockable_base< T_mutex >::mutex_type


Constructor & Destructor Documentation

template<typename T_mutex>
sigx::lockable_base< T_mutex >::lockable_base (  )  [inline, protected]


Member Function Documentation

template<typename T_mutex>
mutex_type& sigx::lockable_base< T_mutex >::mutex (  )  const throw () [inline]


Field Documentation

template<typename T_mutex>
mutex_type sigx::lockable_base< T_mutex >::m_mutex [mutable, protected]

Note:
mutable in case that lockable_base is const.

Referenced by sigx::lockable_base< Glib::RecMutex >::mutex().


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

Generated on Wed Jan 28 21:38:00 2009 for sigx++ by  doxygen 1.5.8