boost 进程间共享互斥体和 boost 共享互斥体的进程间条件变量
增强版本 - 1.47 我找不到 boost::interprocess::interprocess_sharable_mutex,但看起来它是前向声明的。这真的支持吗?
我可以看到 boost::interprocess::interprocess_upgradable_mutex 是向前声明的,并且也被定义了。但是,我无法找到可以使用此互斥体的相应条件变量。有什么想法吗?
Boost version - 1.47
I can not find boost::interprocess::interprocess_sharable_mutex, but it looks like it is forward declared. Is this really supported ?
I can see that boost::interprocess::interprocess_upgradable_mutex is forward declared and it is also defined as well. However, I am not able to find a corresponding condition variable with which I can use this mutex. Any ideas ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我知道这是一个老问题,但我自己只是在寻找这个问题,然后发现了这个问题和 此讨论实际上是在说:“不,你不能。”
boost::interprocess::interprocess_condition
只能与标准互斥体一起使用。 :(I know this is an old question, but I was just looking for this myself and came upon this question and this discussion on the Boost Users mailing list that effectively says, "No, you can't."
boost::interprocess::interprocess_condition
can only be used with the standard mutex. :(