[英]Does boost::interprocess::named_mutex need to be stored in shared memory?
I want to use boost::interprocess
to perform synchronization across multiple processes; 我想使用boost::interprocess
在多个进程之间执行同步; in the specific I want to to use boost::interprocessnamed_mutex
under Linux OS ( I am using g++ ) . 在特定的情况下,我想在Linux OS下使用boost::interprocessnamed_mutex
(我正在使用g ++)。
Do you know if each instance of this class has to be stored in shared memory like the simple boost::interprocess::mutex
? 您是否知道此类的每个实例是否必须像简单的boost::interprocess::mutex
一样存储在共享内存中?
Do you know if each instance of this class has to be stored in shared memory like the simple boost::interprocess::mutex? 您是否知道此类的每个实例是否都必须像简单的boost :: interprocess :: mutex一样存储在共享内存中?
The "named" objects don't have to be in the shared memory. “命名”对象不必位于共享内存中。 See this example in the Boost.Interprocess documentation. 请参阅Boost.Interprocess文档中的示例 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.