audio: Simplify AudioHalBinderServiceUtil::waitForFired() am: a76d4d8899 am: fcf3a1b36b am: f9f2412cef

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2819039

Change-Id: Ic20f3123c0fefa0c57eddfed897b4f3f3687febe
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Bart Van Assche
2023-11-07 02:59:48 +00:00
committed by Automerger Merge Worker

View File

@@ -71,8 +71,7 @@ class AudioHalBinderServiceUtil {
bool waitForFired(std::chrono::milliseconds timeoutMs) {
std::unique_lock<std::mutex> lock(mutex);
condition.wait_for(lock, timeoutMs, [this]() { return fired; });
return fired;
return condition.wait_for(lock, timeoutMs, [this]() { return fired; });
}
private: