Skip to content

Commit 65aef15

Browse files
Jean-Baptiste QueruAndroid Code Review
authored andcommitted
Merge "fix failing thread object run" into gingerbread
2 parents e59e030 + 2d9299b commit 65aef15

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
@@ -775,6 +775,7 @@ int Thread::_threadLoop(void* user)
775775
self->mLock.lock();
776776
self->mRunning = false;
777777
self->mThreadExitedCondition.broadcast();
778+
self->mThread = thread_id_t(-1); // thread id could be reused
778779
self->mLock.unlock();
779780
break;
780781
}

0 commit comments

Comments
 (0)