We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c12cdda + 65aef15 commit e88fa50Copy full SHA for e88fa50
libs/utils/Threads.cpp
@@ -778,6 +778,7 @@ int Thread::_threadLoop(void* user)
778
// called by a new thread using the same thread ID as this one.
779
self->mThread = thread_id_t(-1);
780
self->mThreadExitedCondition.broadcast();
781
+ self->mThread = thread_id_t(-1); // thread id could be reused
782
self->mLock.unlock();
783
break;
784
}
0 commit comments