sigx++ 2.0.1
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
sigx::lockable_base< T_mutex > Struct Template Reference

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 sigx::safe_lockable< T_type, T_mutex > sigx::lockable< T_type, T_mutex >

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::RWLock >::mutex().


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