I succesfully compiled the Creating vectors in shared memory example from Boost. I'm uncertain if insertions into the constructed vector from multiple processes are safe (automatically synchronized intern). The documentation talks about Synchronization guarantees but this only refers the creation/search/destruction of the shared memory.
Do you know if I have to synchronize vector accesses (insertions, deletion, iteration) manually with e.g. scoped_lock<named_mutex>
?
The object you created is a std::vector
, so boost can't have added any synchronization to the standard library class. Just like any other std::vector
, you'll have to synchronize it manually.