commit | 5529c13a42a512b26c57052e80bc1351e79cbb01 | [log] [tgz] |
---|---|---|
author | Andy Hung <hunga@google.com> | Thu Jan 25 17:02:30 2024 -0800 |
committer | Andy Hung <hunga@google.com> | Mon Mar 11 14:20:38 2024 -0700 |
tree | 3e091c63cd652aa1d00fe6b4c5b3c7f686824462 | |
parent | 519c137523043de245201f92676a76be6311f336 [diff] [blame] |
audioserver: Add notification tid metadata to the command thread wait Add tid argument to the condition variable wait for TimeCheck analysis. Test: compiles Bug: 322424558 Merged-In: Iff9d561383f595eca236dce2783c1025aa04bb03 Change-Id: Iff9d561383f595eca236dce2783c1025aa04bb03
diff --git a/services/audiopolicy/service/AudioPolicyService.cpp b/services/audiopolicy/service/AudioPolicyService.cpp index 57e2718..aed6458 100644 --- a/services/audiopolicy/service/AudioPolicyService.cpp +++ b/services/audiopolicy/service/AudioPolicyService.cpp
@@ -2481,7 +2481,7 @@ while (command->mWaitStatus) { nsecs_t timeOutNs = kAudioCommandTimeoutNs + milliseconds(delayMs); if (command->mCond.wait_for( - ul, std::chrono::nanoseconds(timeOutNs)) == std::cv_status::timeout) { + ul, std::chrono::nanoseconds(timeOutNs), getTid()) == std::cv_status::timeout) { command->mStatus = TIMED_OUT; command->mWaitStatus = false; }