IBR-DTNSuite
0.12
|
#include <ThreadsafeState.h>
Classes | |
class | Locked |
Public Member Functions | |
ThreadsafeState (T init, T final) | |
virtual | ~ThreadsafeState () |
void | reset (T init) |
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 |
const T | _final_state |
Additional Inherited Members | |
Protected Types inherited from ibrcommon::Mutex | |
enum | MUTEX_TYPE { MUTEX_NORMAL = PTHREAD_MUTEX_NORMAL, MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE, MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK } |
Protected Member Functions inherited from ibrcommon::Conditional | |
Conditional () | |
virtual | ~Conditional () |
void | signal (bool broadcast=false) throw () |
void | wait (size_t timeout=0) throw (ConditionalAbortException) |
void | wait (struct timespec *ts) throw (ConditionalAbortException) |
void | abort () throw () |
void | reset () throw () |
Static Protected Member Functions inherited from ibrcommon::Conditional | |
static void | gettimeout (size_t timeout, struct timespec *hires) throw () |
Definition at line 31 of file ThreadsafeState.h.
|
inline |
Definition at line 38 of file ThreadsafeState.h.
|
inlinevirtual |
Definition at line 43 of file ThreadsafeState.h.
|
inline |
Definition at line 55 of file ThreadsafeState.h.
Referenced by ibrcommon::JoinableThread::~JoinableThread().
|
inline |
Definition at line 151 of file ThreadsafeState.h.
Referenced by ibrcommon::Thread::cancel(), and ibrcommon::JoinableThread::join().
|
inline |
Definition at line 86 of file ThreadsafeState.h.
|
inline |
Definition at line 70 of file ThreadsafeState.h.
|
inline |
Definition at line 81 of file ThreadsafeState.h.
|
inline |
Definition at line 50 of file ThreadsafeState.h.
Referenced by ibrcommon::Thread::reset().
|
inline |
Definition at line 60 of file ThreadsafeState.h.
Referenced by ibrcommon::ThreadsafeState< THREAD_STATE >::wait().
|
protected |
Definition at line 35 of file ThreadsafeState.h.
Referenced by ibrcommon::ThreadsafeState< THREAD_STATE >::operator=(), ibrcommon::ThreadsafeState< THREAD_STATE >::wait(), and ibrcommon::ThreadsafeState< THREAD_STATE >::~ThreadsafeState().
|
protected |
Definition at line 34 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 >::reset(), ibrcommon::ThreadsafeState< THREAD_STATE >::wait(), and ibrcommon::ThreadsafeState< THREAD_STATE >::~ThreadsafeState().