-
Notifications
You must be signed in to change notification settings - Fork 7
shared_memory ~shared_memory
Alairion edited this page May 8, 2021
·
4 revisions
nes::shared_memory::~shared_memory
(1) ~shared_memory();
- Destroys the shared memory object.
Note: On Posix systems the shared memory's filesystem entry is not removed, Not Enough Standards does not write anything inside the shared memory, so it does not use any reference counter. Also reference counter is useless in case of crash because it will not be decremented so the shared memory will still stay forever in the filesystem.
None.
- Does not throw.
- On Windows, the handle is closed using
CloseHandle
On Posix systems, the handle is closed usingclose
, but the the filesystem entry of the shared memory is not removed, i.e.shm_unlink
is never called