This module implements basic server-client memory mapping functionality
At a Glance
Example
A typical scenario would be to have a server process map a region of its own memory so that other processes can access it:
{
ServerMappedFile* mapped_file = new ServerMappedFile();
mapped_file->init("my_file", 100*1024*1024, my_buffer);
while (exit_signal() == false) {}
delete mapped_file;
}
and a client read that mapped file:
{
MappedFile mapped_file;
void* mapped_buffer = mapped_file.init("my_file", 100*1024*1024);
do_something( mapped_buffer );
}
Technical Overview
See the Memory Mapping module documentation.