mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-27 08:41:02 +08:00
(ProfileManager) THREAD_STORAGE is not creating in endBlock
This commit is contained in:
parent
21a7898572
commit
d550b91e56
@ -562,10 +562,7 @@ void ProfileManager::endBlock()
|
||||
if (!m_isEnabled.load(std::memory_order_acquire))
|
||||
return;
|
||||
|
||||
if (THREAD_STORAGE == nullptr)
|
||||
THREAD_STORAGE = &threadStorage(getCurrentThreadId());
|
||||
|
||||
if (THREAD_STORAGE->blocks.openedList.empty())
|
||||
if (THREAD_STORAGE == nullptr || THREAD_STORAGE->blocks.openedList.empty())
|
||||
return;
|
||||
|
||||
Block& lastBlock = THREAD_STORAGE->blocks.openedList.top();
|
||||
|
Loading…
x
Reference in New Issue
Block a user