audio: Simplify AudioHalBinderServiceUtil::waitForFired() am: a76d4d8899
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2819039 Change-Id: I5cbe1fe61b1b36b9e49337bc0070f0c00dbbd5eb Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
fcf3a1b36b
1 changed files with 1 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue