RobWorkProject  24.5.15-
Classes | Namespaces
ThreadSafeVariable.hpp File Reference

A thread safe protected variable. More...

#include <boost/thread/condition_variable.hpp>
#include <boost/thread/mutex.hpp>
#include <boost/thread/shared_mutex.hpp>

Classes

class  ThreadSafeVariable< T >
 A thread safe protected variable. More...
 

Namespaces

 rw
 Deprecated namespace since 16/4-2020 for this class.
 
 rw::common
 Various utilities and definitions of general use.
 

Detailed Description

A thread safe protected variable.

This is very useful for making simple thread-safe variables, but also for synchronization between threads.