BufferedValue is a class to enable a representation of two values for one variable, where both values need to be accessible at the same time, one in a thread safe, single threaded context, the other in a thread unsafe context.
More...
#include <BufferedValue.h>
template<class T>
class SurgSim::DataStructures::BufferedValue< T >
BufferedValue is a class to enable a representation of two values for one variable, where both values need to be accessible at the same time, one in a thread safe, single threaded context, the other in a thread unsafe context.
- Template Parameters
-
T | Type that is used for the value. |
§ BufferedValue()
§ safeGet()
Get the buffered value.
- Returns
- The value at the last call to publish.
§ unsafeGet()
Get the value.
- Returns
- A reference to the value.
The documentation for this class was generated from the following files: