summaryrefslogtreecommitdiffstats
path: root/libs/utils
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2011-01-25 09:41:20 -0800
committerAlex Ray <aray@google.com>2013-07-30 13:56:55 -0700
commita25d2caf15c8f75f94f49807e749cde298b7f631 (patch)
tree3906130b5809beae00c3bf04d565346a16cca153 /libs/utils
parentac61abe286a768445670a2d0e0cf99de0e697718 (diff)
downloadsystem_core-a25d2caf15c8f75f94f49807e749cde298b7f631.zip
system_core-a25d2caf15c8f75f94f49807e749cde298b7f631.tar.gz
system_core-a25d2caf15c8f75f94f49807e749cde298b7f631.tar.bz2
Revert "libutils: Fix race condition in Thread::requestExitAndWait()"
This change turned out to be unnecessary This reverts commit 4a7f412e1d932f46f6adf079df4d9ee7279bd795.
Diffstat (limited to 'libs/utils')
-rw-r--r--libs/utils/Threads.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/libs/utils/Threads.cpp b/libs/utils/Threads.cpp
index 00d009b..ad9a94f 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<Thread> strong(mHoldSelf);
-
if (mThread == getThreadId()) {
LOGW(
"Thread (this=%p): don't call waitForExit() from this "