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:
parent
583410c929
commit
c96a8c3a18
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user