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

(profiler_core) Added "ThreadFinished" event

This commit is contained in:
Victor Zarubkin 2016-09-23 23:51:49 +03:00
parent 583410c929
commit c96a8c3a18

View File

@ -262,7 +262,7 @@ ThreadGuard::~ThreadGuard()
{ {
if (m_id != 0 && THREAD_STORAGE != nullptr && THREAD_STORAGE->id == m_id) if (m_id != 0 && THREAD_STORAGE != nullptr && THREAD_STORAGE->id == m_id)
{ {
//printf("%s Thread expired!\n", THREAD_STORAGE->name.c_str()); EASY_EVENT("ThreadFinished", profiler::colors::Dark);
THREAD_STORAGE->expired.store(true, std::memory_order_release); THREAD_STORAGE->expired.store(true, std::memory_order_release);
THREAD_STORAGE = nullptr; THREAD_STORAGE = nullptr;
} }