Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fcea71a3 authored by Mike Lockwood's avatar Mike Lockwood
Browse files

Revert "libutils: Fix race condition in Thread::requestExitAndWait()"

This change turned out to be unnecessary

This reverts commit 4a7f412e1d932f46f6adf079df4d9ee7279bd795.
parent e2a85add
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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 "