diff options
author | Max Kellermann <max@musicpd.org> | 2019-05-07 20:01:45 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-05-07 20:01:45 +0200 |
commit | 973c87b351b31961a51b6ea9afc4bea0872565ad (patch) | |
tree | a47d7823474be76edb75d4ffc9f3fc1fe73e5f79 /src/event | |
parent | 72fc117393b7b9cf34446ac6b990f344284c43a8 (diff) |
event/Call, ...: use wait() with predicate
Diffstat (limited to 'src/event')
-rw-r--r-- | src/event/Call.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/event/Call.cxx b/src/event/Call.cxx index 2711c1190..f244e9cac 100644 --- a/src/event/Call.cxx +++ b/src/event/Call.cxx @@ -53,8 +53,7 @@ public: { std::unique_lock<Mutex> lock(mutex); - while (!done) - cond.wait(lock); + cond.wait(lock, [this]{ return done; }); } if (exception) |