am e88fa50b: Merge from open-source gingerbread

* commit 'e88fa50be8d6709ef58b7aeb01c5efa059bcac2e':
  fix failing thread object run
This commit is contained in:
Jean-Baptiste Queru
2011-01-30 16:19:59 -08:00
committed by Android Git Automerger

View File

@@ -778,6 +778,7 @@ int Thread::_threadLoop(void* user)
// called by a new thread using the same thread ID as this one.
self->mThread = thread_id_t(-1);
self->mThreadExitedCondition.broadcast();
self->mThread = thread_id_t(-1); // thread id could be reused
self->mLock.unlock();
break;
}