9 #ifndef mrpt_synch_threadsafevar_H 10 #define mrpt_synch_threadsafevar_H 58 void get(T &out_val)
const 65 operator T(
void)
const 72 void set(
const T &new_val)
82 std::swap(in_out_var,
m_val);
A template for created thread-safe variables with an internal critical section controlled each read o...
This class provides simple critical sections functionality.
A class acquiring a CCriticalSection at its constructor, and releasing it at destructor.
void swap(T &in_out_var)
Swap the current value of the hold variable and the passed one, as one atomic operation.
virtual ~CThreadSafeVariable()
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
CThreadSafeVariable(const T &init_val)