added assertion

This commit is contained in:
Alexey Gerasimchuck 2023-09-07 03:27:04 +00:00
parent c2f4dc0f14
commit 1c8216b5c6

View File

@ -80,6 +80,7 @@ void ThreadGroup::linkThread(UInt64 thread_id)
void ThreadGroup::unlinkThread()
{
std::lock_guard lock(mutex);
chassert(active_thread_count > 0);
--active_thread_count;
}