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

@@ -138,7 +138,7 @@ protected:
request.Stop();
done = true;
cond.signal();
cond.notify_one();
}
void LockSetDone() {

View File

@@ -138,7 +138,7 @@ private:
const std::lock_guard<Mutex> protect(mutex);
state = _state;
cond.broadcast();
cond.notify_all();
}
void SetState(State _state, std::exception_ptr &&e) noexcept {
@@ -147,7 +147,7 @@ private:
const std::lock_guard<Mutex> protect(mutex);
state = _state;
last_exception = std::move(e);
cond.broadcast();
cond.notify_all();
}
void Connect() noexcept {

View File

@@ -147,7 +147,7 @@ UdisksStorage::SetMountPoint(Path mount_point)
mount_error = {};
want_mount = false;
cond.broadcast();
cond.notify_all();
}
void
@@ -188,7 +188,7 @@ UdisksStorage::OnListReply(ODBus::Message reply) noexcept
const std::lock_guard<Mutex> lock(mutex);
mount_error = std::current_exception();
want_mount = false;
cond.broadcast();
cond.notify_all();
return;
}
@@ -247,7 +247,7 @@ try {
const std::lock_guard<Mutex> lock(mutex);
mount_error = std::current_exception();
want_mount = false;
cond.broadcast();
cond.notify_all();
}
void
@@ -266,7 +266,7 @@ try {
const std::lock_guard<Mutex> lock(mutex);
mount_error = std::current_exception();
want_mount = false;
cond.broadcast();
cond.notify_all();
}
void
@@ -306,7 +306,7 @@ try {
const std::lock_guard<Mutex> lock(mutex);
mount_error = std::current_exception();
mounted_storage.reset();
cond.broadcast();
cond.notify_all();
}
void
@@ -318,12 +318,12 @@ try {
const std::lock_guard<Mutex> lock(mutex);
mount_error = {};
mounted_storage.reset();
cond.broadcast();
cond.notify_all();
} catch (...) {
const std::lock_guard<Mutex> lock(mutex);
mount_error = std::current_exception();
mounted_storage.reset();
cond.broadcast();
cond.notify_all();
}
std::string