mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user