Boost by default is using System V shared memory and creating file for communication. I want it to use POSIX shared memory.
Is their a way to force boost to use POSIX shared memory instead of trying to create a file?
Do I have to change something in source code (Boost.Interprocess)?
I am using 1.46.1 version of boost in my project on OS X (10.6, 10.7 and 10.8). But I can use 1.52.0 too. Before to migrate I want to know if it’s even possible to do.
From the documentation, Boost Interprocess will use POSIX when available. Digging further into it, it appears that on Max OSX it does not because the implementation has some non-conforming behavior (according to the header) . Below is the code from
boost/interprocess/detail/workaround.hpp.