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

Commit d6952c02 authored by Andy Hung's avatar Andy Hung Committed by Android (Google) Code Review
Browse files

Merge "TimeCheck: Track waiting through thread join in AudioFlinger" into main

parents b1672100 51e73d36
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -694,6 +694,10 @@ void ThreadBase::exit()
    }
    // When Thread::requestExitAndWait is made virtual and this method is renamed to
    // "virtual status_t requestExitAndWait()", replace by "return Thread::requestExitAndWait();"

    // For TimeCheck: track waiting on the thread join of getTid().
    audio_utils::mutex::scoped_join_wait_check sjw(getTid());

    requestExitAndWait();
}