boost 版本 - 1.47 我找不到 boost::interprocess::interprocess_sharable_mutex,但看起来它是前向声明的。这真的受支持吗?
我可以看到 boost::interprocess::interprocess_upgradable_mutex 是前向声明的,它也被定义了。但是,我找不到可以使用此互斥锁的相应条件变量。有什么想法吗?
最佳答案
我知道这是一个老问题,但我自己正在寻找这个问题并遇到了这个问题并且 this discussion在 Boost Users 邮件列表中有效地说,“不,你不能。” boost::interprocess::interprocess_condition
只能与标准互斥体一起使用。 :(
关于c++ - boost::interprocess 共享互斥锁和 boost 共享互斥锁的进程间条件变量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7417902/