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

Commit 77b1bb43 authored by Andy Hung's avatar Andy Hung
Browse files

AudioFlinger: Allow TimeCheck to track waits through RecordThread::mStartStopCV

Test: Treehugger
Bug: 338974476
Change-Id: I2d014b984cf06ae187272c8a96fa9820c4d61fe7
parent 3e8404f4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -9175,7 +9175,7 @@ bool RecordThread::stop(IAfRecordTrack* recordTrack) {
    // This is needed for proper patchRecord peer release.
    while (recordTrack->state() == IAfTrackBase::PAUSING && !recordTrack->isInvalid()) {
        mWaitWorkCV.notify_all(); // signal thread to stop
        mStartStopCV.wait(_l);
        mStartStopCV.wait(_l, getTid());
    }

    if (recordTrack->state() == IAfTrackBase::PAUSED) { // successful stop