![](/img/trans.png)
[英]How to release boost::interprocess::named_mutex when the process crashes
[英]Why do the boost interprocess named mutex docs say each process should have it's own named mutex?
我正在尝试使用名为互斥的boost进程间,而对于文档中的这一行我有些困惑: 具有全局名称的互斥体,因此可以在不同的进程中找到它。 该互斥锁不能放在共享内存中,每个进程都应具有自己的named_mutex。
我希望不同的进程使用相同的互斥锁,而不是每个进程都有自己的互斥锁。 那条线到底是什么意思?
http://www.boost.org/doc/libs/1_63_0/doc/html/boost/interprocess/named_mutex.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.