libmoost
moost::thread::token_mutex< T >::scoped_lock Class Reference

locks a token mutex with a given token More...

#include <token_mutex.hpp>

List of all members.

Public Member Functions

 scoped_lock (token_mutex< T > &token_mutex, const T &token)
 ~scoped_lock ()

Private Attributes

token_mutex< T > & m_token_mutex
m_token

Friends

class scoped_promote_lock

Detailed Description

template<typename T>
class moost::thread::token_mutex< T >::scoped_lock

locks a token mutex with a given token

Definition at line 57 of file token_mutex.hpp.


Constructor & Destructor Documentation

template<typename T>
moost::thread::token_mutex< T >::scoped_lock::scoped_lock ( token_mutex< T > &  token_mutex,
const T &  token 
) [inline]

Definition at line 65 of file token_mutex.hpp.

template<typename T>
moost::thread::token_mutex< T >::scoped_lock::~scoped_lock ( ) [inline]

Definition at line 72 of file token_mutex.hpp.


Friends And Related Function Documentation

template<typename T>
friend class scoped_promote_lock [friend]

Definition at line 63 of file token_mutex.hpp.


Member Data Documentation

template<typename T>
T moost::thread::token_mutex< T >::scoped_lock::m_token [private]

Definition at line 61 of file token_mutex.hpp.

template<typename T>
token_mutex<T>& moost::thread::token_mutex< T >::scoped_lock::m_token_mutex [private]

Definition at line 60 of file token_mutex.hpp.


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