I'm using Boost, specifically shared_memory_object and mapped_region to implement basic IPC (shared memory).
Now, I wanna extend the program, so the shared memory could be access from several separated process for not only reading but also for changing the data.
The first thing I thought about was synchronization between these processes. Actually the requirement is to lock the shared memory when any of those processes is willing to access the object, but as the resource is defined out of the scope of those programs .. how can it be done ?!
Could you please first tell me if this requirement already implemented into those classes implicitly? and if not could please elaborate how to achieve this goal?