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

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

#include <token_mutex.hpp>

List of all members.

Public Member Functions

 scoped_try_lock (token_mutex< T > &token_mutex, const T &token)
 operator bool () const
bool operator! () const
 ~scoped_try_lock ()

Private Attributes

token_mutex< T > & m_token_mutex
m_token
bool m_got_lock

Detailed Description

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

locks a token mutex with a given token

Definition at line 81 of file token_mutex.hpp.


Constructor & Destructor Documentation

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

Definition at line 88 of file token_mutex.hpp.

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

Definition at line 97 of file token_mutex.hpp.


Member Function Documentation

template<typename T>
moost::thread::token_mutex< T >::scoped_try_lock::operator bool ( ) const [inline]

Definition at line 95 of file token_mutex.hpp.

template<typename T>
bool moost::thread::token_mutex< T >::scoped_try_lock::operator! ( ) const [inline]

Definition at line 96 of file token_mutex.hpp.


Member Data Documentation

template<typename T>
bool moost::thread::token_mutex< T >::scoped_try_lock::m_got_lock [private]

Definition at line 86 of file token_mutex.hpp.

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

Definition at line 85 of file token_mutex.hpp.

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

Definition at line 84 of file token_mutex.hpp.


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