Managed anonymous shared memory with boost::interprocess

470 Views Asked by At

I am trying to share memory between processes after a fork(), boost::interprocess offers a way to do exactly this by using their anonymous_shared_memoryas shown here. However the library also provides managed_shared_memory objects which have very useful allocators and deallocators. But it doesn't seem possible to create a managed_shared_memory object from the mapped_region returned by the anonymous_shared_memory call. Am I missing something ?

0

There are 0 best solutions below