From fcea71a3a9eeff8c8f4e1c97c5f5ae4df04750fd Mon Sep 17 00:00:00 2001 From: Mike Lockwood Date: Tue, 25 Jan 2011 09:41:20 -0800 Subject: [PATCH] Revert "libutils: Fix race condition in Thread::requestExitAndWait()" This change turned out to be unnecessary This reverts commit 4a7f412e1d932f46f6adf079df4d9ee7279bd795. --- libs/utils/Threads.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/libs/utils/Threads.cpp b/libs/utils/Threads.cpp index 00d009b14..ad9a94f59 100644 --- a/libs/utils/Threads.cpp +++ b/libs/utils/Threads.cpp @@ -799,9 +799,6 @@ void Thread::requestExit() status_t Thread::requestExitAndWait() { - // hold a reference so mThreadExitedCondition is not destroyed before wait() returns - sp strong(mHoldSelf); - if (mThread == getThreadId()) { LOGW( "Thread (this=%p): don't call waitForExit() from this "