Skip to content

No need to keep file handle open after memory mapping #400

@hendrikmuhs

Description

@hendrikmuhs

It is safe to destruct a file_mapping after mapped_region:

~file_mapping();

Destroys the file mapping. All mapped regions created from this are still valid. Does not throw

from: https://www.boost.org/doc/libs/1_46_1/doc/html/boost/interprocess/file_mapping.html

Therefore we can remove this member. It is not used outside of the constructor. There we can use a variable instead

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions