Merge branch 'master' of ssh://android-git:29418/platform/frameworks/base

This commit is contained in:
Leon Scroggins
2011-01-24 16:22:06 -08:00
committed by Android Git Automerger

View File

@@ -799,6 +799,9 @@ void Thread::requestExit()
status_t Thread::requestExitAndWait()
{
// hold a reference so mThreadExitedCondition is not destroyed before wait() returns
sp<Thread> strong(mHoldSelf);
if (mThread == getThreadId()) {
LOGW(
"Thread (this=%p): don't call waitForExit() from this "