Skip to content

shared_memory ~shared_memory

Alairion edited this page May 8, 2021 · 4 revisions

nes::shared_memory::~shared_memory

Functions

(1) ~shared_memory();
  1. 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.

Parameters

None.

Exceptions

  1. Does not throw.

Implementation details

  1. On Windows, the handle is closed using CloseHandle
    On Posix systems, the handle is closed using close, but the the filesystem entry of the shared memory is not removed, i.e. shm_unlink is never called
Clone this wiki locally