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/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp
index ddef7f3..4fdf79f 100644
--- a/services/audioflinger/Threads.cpp
+++ b/services/audioflinger/Threads.cpp
@@ -721,8 +721,9 @@
{
audio_utils::unique_lock _l(event->mutex());
while (event->mWaitStatus) {
- if (event->mCondition.wait_for(_l, std::chrono::nanoseconds(kConfigEventTimeoutNs))
- == std::cv_status::timeout) {
+ if (event->mCondition.wait_for(
+ _l, std::chrono::nanoseconds(kConfigEventTimeoutNs), getTid())
+ == std::cv_status::timeout) {
event->mStatus = TIMED_OUT;
event->mWaitStatus = false;
}