thread/*Cond: rename methods to match std::condition_variable

This commit is contained in:
Max Kellermann
2019-04-25 18:33:09 +02:00
parent 5bc8cd0ecb
commit b51bae5500
25 changed files with 72 additions and 72 deletions

View File

@@ -39,7 +39,7 @@ AudioOutputControl::CommandFinished() noexcept
assert(command != Command::NONE);
command = Command::NONE;
client_cond.signal();
client_cond.notify_one();
}
inline void
@@ -215,7 +215,7 @@ AudioOutputControl::WaitForDelay() noexcept
if (delay <= std::chrono::steady_clock::duration::zero())
return true;
(void)wake_cond.timed_wait(mutex, delay);
(void)wake_cond.wait_for(mutex, delay);
if (command != Command::NONE)
return false;