#include <MutexUtils.h>
Public Types | |
typedef T | Case |
Public Member Functions | |
const Case & | get () const |
void | go (const Case &i) |
const Case & | operator() () const |
Private Attributes | |
boost::condition | doit |
Case | it |
SimpleLockMutex::Mutex | lock |
Definition at line 117 of file MutexUtils.h.
typedef T ThreadMessage< T >::Case |
Definition at line 119 of file MutexUtils.h.
const Case& ThreadMessage< T >::get | ( | void | ) | const [inline] |
void ThreadMessage< T >::go | ( | const Case & | i | ) | [inline] |
Definition at line 127 of file MutexUtils.h.
References ThreadMessage< T >::doit, i, ThreadMessage< T >::it, and ThreadMessage< T >::lock.
{ SimpleLockMutex gl(lock); it=i; doit.notify_all(); }
const Case& ThreadMessage< T >::operator() | ( | ) | const [inline] |
Definition at line 121 of file MutexUtils.h.
References ThreadMessage< T >::doit, ThreadMessage< T >::it, and ThreadMessage< T >::lock.
{ SimpleLockMutex gl(lock); doit.wait(gl()); return it; }
boost::condition ThreadMessage< T >::doit [mutable, private] |
Definition at line 138 of file MutexUtils.h.
Referenced by ThreadMessage< T >::go(), and ThreadMessage< T >::operator()().
Case ThreadMessage< T >::it [private] |
Definition at line 139 of file MutexUtils.h.
Referenced by ThreadMessage< T >::get(), ThreadMessage< T >::go(), and ThreadMessage< T >::operator()().
SimpleLockMutex::Mutex ThreadMessage< T >::lock [mutable, private] |
Definition at line 137 of file MutexUtils.h.
Referenced by ThreadMessage< T >::go(), and ThreadMessage< T >::operator()().