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

Commit f81f7a52 authored by Eric Laurent's avatar Eric Laurent Committed by Gerrit Code Review
Browse files

Merge "audioflinger: check for condition before waiting"

parents 645e4397 c9561635
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -3861,7 +3861,12 @@ bool AudioFlinger::AsyncCallbackThread::threadLoop()

        {
            Mutex::Autolock _l(mLock);
            while (!((mWriteAckSequence & 1) ||
                     (mDrainSequence & 1) ||
                     exitPending())) {
                mWaitWorkCV.wait(mLock);
            }

            if (exitPending()) {
                break;
            }