IBR-DTNSuite
0.8
|
#include <ThreadsafeState.h>
Classes | |
class | Locked |
Public Member Functions | |
ThreadsafeState (T init, T final) | |
virtual | ~ThreadsafeState () |
T | get () const |
void | wait (T st) |
T | operator= (T st) |
bool | operator== (T st) const |
bool | operator!= (T st) const |
Locked | lock () |
Protected Attributes | |
T | _state |
T | _final_state |
Definition at line 17 of file ThreadsafeState.h.
ibrcommon::ThreadsafeState< T >::ThreadsafeState | ( | T | init, |
T | final | ||
) | [inline] |
Definition at line 24 of file ThreadsafeState.h.
virtual ibrcommon::ThreadsafeState< T >::~ThreadsafeState | ( | ) | [inline, virtual] |
Definition at line 29 of file ThreadsafeState.h.
T ibrcommon::ThreadsafeState< T >::get | ( | ) | const [inline] |
Definition at line 36 of file ThreadsafeState.h.
Referenced by ibrcommon::JoinableThread::~JoinableThread().
Locked ibrcommon::ThreadsafeState< T >::lock | ( | ) | [inline] |
Definition at line 132 of file ThreadsafeState.h.
Referenced by ibrcommon::Thread::cancel(), and ibrcommon::JoinableThread::join().
bool ibrcommon::ThreadsafeState< T >::operator!= | ( | T | st | ) | const [inline] |
Definition at line 67 of file ThreadsafeState.h.
T ibrcommon::ThreadsafeState< T >::operator= | ( | T | st | ) | [inline] |
Definition at line 51 of file ThreadsafeState.h.
bool ibrcommon::ThreadsafeState< T >::operator== | ( | T | st | ) | const [inline] |
Definition at line 62 of file ThreadsafeState.h.
void ibrcommon::ThreadsafeState< T >::wait | ( | T | st | ) | [inline] |
Definition at line 41 of file ThreadsafeState.h.
Referenced by ibrcommon::ThreadsafeState< THREAD_STATE >::wait().
T ibrcommon::ThreadsafeState< T >::_final_state [protected] |
Definition at line 21 of file ThreadsafeState.h.
Referenced by ibrcommon::ThreadsafeState< THREAD_STATE >::operator=(), ibrcommon::ThreadsafeState< THREAD_STATE >::wait(), and ibrcommon::ThreadsafeState< THREAD_STATE >::~ThreadsafeState().
T ibrcommon::ThreadsafeState< T >::_state [protected] |
Definition at line 20 of file ThreadsafeState.h.
Referenced by ibrcommon::ThreadsafeState< THREAD_STATE >::get(), ibrcommon::ThreadsafeState< THREAD_STATE >::operator!=(), ibrcommon::ThreadsafeState< THREAD_STATE >::operator=(), ibrcommon::ThreadsafeState< THREAD_STATE >::operator==(), ibrcommon::ThreadsafeState< THREAD_STATE >::wait(), and ibrcommon::ThreadsafeState< THREAD_STATE >::~ThreadsafeState().