am 48f400c3: am bec4abaa: Merge "Fix issue 3302649." into gingerbread

* commit '48f400c3762bd50603222cb5e7856d6aef4ebc4e':
  Fix issue 3302649.
This commit is contained in:
Eric Laurent 2011-01-12 20:48:44 -08:00 committed by Android Git Automerger
commit 67639b59be

View File

@ -774,6 +774,9 @@ int Thread::_threadLoop(void* user)
self->mExitPending = true;
self->mLock.lock();
self->mRunning = false;
// clear thread ID so that requestExitAndWait() does not exit if
// called by a new thread using the same thread ID as this one.
self->mThread = thread_id_t(-1);
self->mThreadExitedCondition.broadcast();
self->mLock.unlock();
break;