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_memory
as 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 ?
Asked
Active
Viewed 434 times
1

user3559888
- 1,157
- 1
- 9
- 12