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:
parent
e7f5cc0748
commit
8f7ffa9102
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user