mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 16:56:45 +08:00
Added clear_storage for quieue
This commit is contained in:
parent
ab90437e44
commit
17dcde92bf
@ -59,6 +59,10 @@ public:
|
|||||||
elems_h_.clear();
|
elems_h_.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void clear_storage(char const *name) noexcept {
|
||||||
|
shm::handle::clear_storage(name);
|
||||||
|
}
|
||||||
|
|
||||||
bool connected() const noexcept {
|
bool connected() const noexcept {
|
||||||
return connected_ != 0;
|
return connected_ != 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -57,8 +57,8 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void clear_storage(char const *name) noexcept {
|
static void clear_storage(char const *name) noexcept {
|
||||||
ipc::sync::condition::clear_storage(name);
|
ipc::sync::condition::clear_storage((std::string{name} + "_WAITER_COND_").c_str());
|
||||||
ipc::sync::mutex::clear_storage(name);
|
ipc::sync::mutex::clear_storage((std::string{name} + "_WAITER_LOCK_").c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename F>
|
template <typename F>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user