C
Christopher
Does there exist a standard way to atomically read the value of a
bool?
class MultithreadedFoo()
{
bool m_value;
protected:
const bool SafelyReadValue() const
{
// What goes here to prevent the need for locks
// If multiple threads may reach this point?
}
};
bool?
class MultithreadedFoo()
{
bool m_value;
protected:
const bool SafelyReadValue() const
{
// What goes here to prevent the need for locks
// If multiple threads may reach this point?
}
};