thread/*Cond: rename methods to match std::condition_variable
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user