Search code examples
c++synchronizationboost-interprocess

Does boost::interprocess::named_mutex need to be stored in shared memory?


I want to use boost::interprocess to perform synchronization across multiple processes; in the specific I want to to use boost::interprocessnamed_mutex under Linux OS ( I am using g++ ) .

Do you know if each instance of this class has to be stored in shared memory like the simple boost::interprocess::mutex?


Solution

  • Do you know if each instance of this class has to be stored in shared memory like the simple boost::interprocess::mutex?

    The "named" objects don't have to be in the shared memory. See this example in the Boost.Interprocess documentation.