We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
clear_storage
1 parent ab90437 commit 17dcde9Copy full SHA for 17dcde9
src/libipc/queue.h
@@ -59,6 +59,10 @@ class queue_conn {
59
elems_h_.clear();
60
}
61
62
+ static void clear_storage(char const *name) noexcept {
63
+ shm::handle::clear_storage(name);
64
+ }
65
+
66
bool connected() const noexcept {
67
return connected_ != 0;
68
src/libipc/waiter.h
@@ -57,8 +57,8 @@ class waiter {
57
58
static void clear_storage(char const *name) noexcept {
- ipc::sync::condition::clear_storage(name);
- ipc::sync::mutex::clear_storage(name);
+ ipc::sync::condition::clear_storage((std::string{name} + "_WAITER_COND_").c_str());
+ ipc::sync::mutex::clear_storage((std::string{name} + "_WAITER_LOCK_").c_str());
template <typename F>
0 commit comments