0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-27 08:41:02 +08:00

Fix atomic memory model in setEventTracingEnabled()

This commit is contained in:
Rokas Kupstys 2017-03-02 10:28:43 +02:00
parent e7f5cc0748
commit 8f7ffa9102

View File

@ -855,7 +855,7 @@ bool ProfileManager::isEnabled() const
void ProfileManager::setEventTracingEnabled(bool _isEnable)
{
m_isEventTracingEnabled.store(_isEnable, std::memory_order_acquire);
m_isEventTracingEnabled.store(_isEnable, std::memory_order_release);
}
bool ProfileManager::isEventTracingEnabled() const