am 25503f1c: Merge from gingerbread
* commit '25503f1c9f0b5f718052b71dc5b21d1c8576d015': fix failing thread object run
This commit is contained in:
committed by
Android Git Automerger
commit
8a2f3ecc03
@@ -775,6 +775,7 @@ int Thread::_threadLoop(void* user)
|
|||||||
self->mLock.lock();
|
self->mLock.lock();
|
||||||
self->mRunning = false;
|
self->mRunning = false;
|
||||||
self->mThreadExitedCondition.broadcast();
|
self->mThreadExitedCondition.broadcast();
|
||||||
|
self->mThread = thread_id_t(-1); // thread id could be reused
|
||||||
self->mLock.unlock();
|
self->mLock.unlock();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user