We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e59e030 + 2d9299b commit 65aef15Copy full SHA for 65aef15
1 file changed
libs/utils/Threads.cpp
@@ -775,6 +775,7 @@ int Thread::_threadLoop(void* user)
775
self->mLock.lock();
776
self->mRunning = false;
777
self->mThreadExitedCondition.broadcast();
778
+ self->mThread = thread_id_t(-1); // thread id could be reused
779
self->mLock.unlock();
780
break;
781
}
0 commit comments