diff options
| author | Mike Lockwood <lockwood@android.com> | 2011-01-25 09:41:20 -0800 |
|---|---|---|
| committer | Alex Ray <aray@google.com> | 2013-07-30 13:56:55 -0700 |
| commit | a25d2caf15c8f75f94f49807e749cde298b7f631 (patch) | |
| tree | 3906130b5809beae00c3bf04d565346a16cca153 /libs/utils | |
| parent | ac61abe286a768445670a2d0e0cf99de0e697718 (diff) | |
| download | system_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.cpp | 3 |
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 " |
