mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-07 01:06: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() {
|
void handle::release() {
|
||||||
|
if (impl(p_)->id_ == nullptr) return;
|
||||||
shm::release(detach());
|
shm::release(detach());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user