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

(Core) Fixed old typo in ProfileManager::setBlockStatus()

This commit is contained in:
Victor Zarubkin 2017-05-03 21:18:14 +03:00
parent bf308dc299
commit 50b3cc8b7a

View File

@ -1615,7 +1615,7 @@ const char* ProfileManager::registerThread(const char* name)
void ProfileManager::setBlockStatus(block_id_t _id, EasyBlockStatus _status)
{
if (m_profilerStatus.load(std::memory_order_acquire) != EASY_PROF_ENABLED)
if (m_profilerStatus.load(std::memory_order_acquire) != EASY_PROF_DISABLED)
return; // Changing blocks statuses is restricted while profile session is active
guard_lock_t lock(m_storedSpin);