boost::interprocess::mapped_region 更改时的线程通知
当使用 interprocess_condition 更改 boost::interprocess::mapped_region 中的字节时,如何通知我?
我已经打开了一个文件,并正确映射了特定区域。当我轮询并打印内存时,更新已成功。我现在希望收到更改通知,而不是不断轮询。
如何使用 interprocess_condition 通知我的线程内存已更改?
How can I be notified when the bytes in boost::interprocess::mapped_region is changed by using interprocess_condition.
I have opened a file, and have mapped the specific region correctly. When I poll and print the memory, the update has been successful. I now want to be notified of the change rather than continuously polling.
How do I use interprocess_condition to notify my thread the memory has been changed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论