Merge from open-source gingerbread
Change-Id: I56f2ed37187796807fbf0de15274a85164f9432c
This commit is contained in:
@@ -778,6 +778,7 @@ int Thread::_threadLoop(void* user)
|
|||||||
// called by a new thread using the same thread ID as this one.
|
// called by a new thread using the same thread ID as this one.
|
||||||
self->mThread = thread_id_t(-1);
|
self->mThread = thread_id_t(-1);
|
||||||
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