Skip to content

Commit e88fa50

Browse files
author
Jean-Baptiste Queru
committed
Merge from open-source gingerbread
Change-Id: I56f2ed37187796807fbf0de15274a85164f9432c
2 parents c12cdda + 65aef15 commit e88fa50

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libs/utils/Threads.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,7 @@ int Thread::_threadLoop(void* user)
778778
// called by a new thread using the same thread ID as this one.
779779
self->mThread = thread_id_t(-1);
780780
self->mThreadExitedCondition.broadcast();
781+
self->mThread = thread_id_t(-1); // thread id could be reused
781782
self->mLock.unlock();
782783
break;
783784
}

0 commit comments

Comments
 (0)