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

Commit a9f57c64 authored by Leon Scroggins's avatar Leon Scroggins Committed by Android Git Automerger
Browse files
parents 440d23a2 a6b1cd5a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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 "