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

@@ -61,7 +61,7 @@ private:
bool LockWaitFinished() noexcept {
const std::lock_guard<Mutex> protect(mutex);
while (!finished)
if (!cond.timed_wait(mutex, timeout))
if (!cond.wait_for(mutex, timeout))
return false;
return true;
@@ -74,7 +74,7 @@ private:
void LockSetFinished() noexcept {
const std::lock_guard<Mutex> protect(mutex);
finished = true;
cond.signal();
cond.notify_one();
}
/* virtual methods from NfsLease */