mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-07 01:06:45 +08:00
The acquire() function allocates id_info_t using mem::$new<id_info_t>(), so the release() function must use mem::$delete(ii) to deallocate it, not mem::free(ii). This ensures proper allocation/deallocation pairing. Issue: Memory allocated with mem::$new must be freed with mem::$delete to maintain consistent memory management semantics. |
||
|---|---|---|
| .. | ||
| circ | ||
| imp | ||
| mem | ||
| platform | ||
| sync | ||
| utility | ||
| buffer.cpp | ||
| ipc.cpp | ||
| policy.h | ||
| prod_cons.h | ||
| queue.h | ||
| shm.cpp | ||
| waiter.h | ||