am 1314bdb2: am e88fa50b: Merge from open-source gingerbread
* commit '1314bdb2b22ae3613c3e08ae278dbc70f90b965c': fix failing thread object run
This commit is contained in:
commit
d45c61dfcf
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user