
arm2arm
Hello, I would like to load multiindex container by one process lets say serverside_loader. And access that array by another clientside_analyser process? How to do that?
Hi Arman, Yes, this can be done. There's an example that shows you how to do it: http://www.boost.org/libs/multi_index/doc/examples.html#example12 Basically, you've got to take care of three things: * The element type (particleID in this case) must be placeable in shared memory, see http://tinyurl.com/ygau74j for info on the limitations imposed on such objects. particleID is a simple class and can be directly put in shared memory. * You must use a special Boost.Interprocess allocator for the multi-index container. Use the aforementioned example as a guide. * Access to the container must be properly synchronized, just as you'd do for instance in a multi-threaded program. Good luck with your project, come back if you have some difficulty. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo