IBR-DTNSuite  0.8
ibrcommon::ThreadsafeState< T > Class Template Reference

#include <ThreadsafeState.h>

Inheritance diagram for ibrcommon::ThreadsafeState< T >:
Collaboration diagram for ibrcommon::ThreadsafeState< T >:

List of all members.

Classes

class  Locked

Public Member Functions

 ThreadsafeState (T init, T final)
virtual ~ThreadsafeState ()
get () const
void wait (T st)
operator= (T st)
bool operator== (T st) const
bool operator!= (T st) const
Locked lock ()

Protected Attributes

_state
_final_state

Detailed Description

template<class T>
class ibrcommon::ThreadsafeState< T >

Definition at line 17 of file ThreadsafeState.h.


Constructor & Destructor Documentation

template<class T>
ibrcommon::ThreadsafeState< T >::ThreadsafeState ( init,
final 
) [inline]

Definition at line 24 of file ThreadsafeState.h.

template<class T>
virtual ibrcommon::ThreadsafeState< T >::~ThreadsafeState ( ) [inline, virtual]

Definition at line 29 of file ThreadsafeState.h.


Member Function Documentation

template<class T>
T ibrcommon::ThreadsafeState< T >::get ( ) const [inline]

Definition at line 36 of file ThreadsafeState.h.

Referenced by ibrcommon::JoinableThread::~JoinableThread().

template<class T>
Locked ibrcommon::ThreadsafeState< T >::lock ( ) [inline]
template<class T>
bool ibrcommon::ThreadsafeState< T >::operator!= ( st) const [inline]

Definition at line 67 of file ThreadsafeState.h.

template<class T>
T ibrcommon::ThreadsafeState< T >::operator= ( st) [inline]

Definition at line 51 of file ThreadsafeState.h.

template<class T>
bool ibrcommon::ThreadsafeState< T >::operator== ( st) const [inline]

Definition at line 62 of file ThreadsafeState.h.

template<class T>
void ibrcommon::ThreadsafeState< T >::wait ( st) [inline]

Definition at line 41 of file ThreadsafeState.h.

Referenced by ibrcommon::ThreadsafeState< THREAD_STATE >::wait().


Member Data Documentation


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