thread/*Cond: rename methods to match std::condition_variable
This commit is contained in:
@@ -138,7 +138,7 @@ protected:
|
||||
|
||||
request.Stop();
|
||||
done = true;
|
||||
cond.signal();
|
||||
cond.notify_one();
|
||||
}
|
||||
|
||||
void LockSetDone() {
|
||||
|
@@ -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 {
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user