mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 16:56:45 +08:00
Update shm.cpp
This commit is contained in:
parent
89c4b1ce2a
commit
1c32826aa2
@ -65,6 +65,7 @@ bool handle::acquire(char const * name, std::size_t size, unsigned mode) {
|
||||
}
|
||||
|
||||
void handle::release() {
|
||||
if (impl(p_)->id_ == nullptr) return;
|
||||
shm::release(detach());
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user