16 #ifndef SURGSIM_DATASTRUCTURES_BUFFEREDVALUE_INL_H 17 #define SURGSIM_DATASTRUCTURES_BUFFEREDVALUE_INL_H 21 namespace DataStructures
25 BufferedValue<T>::BufferedValue()
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);
47 UniqueLock lock(m_mutex);
48 std::swap(newSafeValue, m_safeValue);
61 SharedLock lock(m_mutex);
Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
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