Jafar
|
This class wraps a simple variable with a mutex very limited but can be useful for lazy people respects the Lockable concept. More...
This class wraps a simple variable with a mutex very limited but can be useful for lazy people respects the Lockable concept.
Definition at line 97 of file threads.hpp.
#include <threads.hpp>
Public Member Functions | |
VariableMutex (const T &val_init) | |
T | get () |
template<typename Assign > | |
void | apply (Assign assign) |
void | set (const T &val) |
T | operator() () |
void | operator() (const T &val) |
void | lock () |
bool | try_lock () |
void | unlock () |
Public Attributes | |
T | var |
Protected Attributes | |
boost::mutex | m |
T jafar::kernel::VariableMutex< T >::var |
Definition at line 100 of file threads.hpp.
Generated on Wed Oct 15 2014 00:37:40 for Jafar by doxygen 1.7.6.1 |