16 #ifndef SURGSIM_DATASTRUCTURES_BUFFEREDVALUE_INL_H 17 #define SURGSIM_DATASTRUCTURES_BUFFEREDVALUE_INL_H 21 namespace DataStructures
27 m_safeValue = std::make_shared<const T>();
34 m_safeValue = std::make_shared<const T>(m_value);
45 auto newSafeValue = std::make_shared<const T>(m_value);
48 std::swap(newSafeValue, m_safeValue);
Definition: CompoundShapeToGraphics.cpp:29
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.
Definition: BufferedValue.h:33
boost::unique_lock< boost::shared_mutex > UniqueLock
Definition: BufferedValue.h:60
BufferedValue()
Definition: BufferedValue-inl.h:25
boost::shared_lock< boost::shared_mutex > SharedLock
Definition: BufferedValue.h:59