ICode9

精准搜索请尝试: 精确搜索
  • c-boost :: named_mutex:在最后一个进程关闭时安全清理2019-10-13 20:14:47

    我有一个资源需要保护在一个流程中以及跨多个流程的访问.我已经通过boost :: interprocess:named_recursive_mutex创建了一个命名互斥体来进行管理,并且效果很好. #include <boost/interprocess/sync/named_recursive_mutex.hpp> boost::interprocess::named_recursive_mutex mut(

  • c-使用STL容器进行boost :: interprocess :: managed_shared_memory2019-10-13 15:07:06

    请考虑以下情况: class Helper { public: // Getters and setters are present! private: int i; std::map<int, boost::interprocess::managed_shared_memory> shm; } int main() { boost::interprocess::managed_shared_memory shmInf

  • c – boost :: interprocess scoped_allocator和不在共享内存中的容器容器2019-09-27 20:06:15

    我在boost::interprocess Containers of containers NOT in shared memory和How to I create a boost interprocess vector of interprocess containers中有一个类似的问题,但这次我喜欢使用我的类,它使用scoped_allocator,也在堆和共享内存上. >我的first question的解决方案是使

  • c – 这些Boost :: Interprocess组件是否需要同步?2019-08-26 07:10:18

    我正在使用IPC构建一个多生产者/单一消费者应用程序,使用Boost.Interprocess实现. 每个生产者通过在共享内存(managed_shared_memory :: allocate)中分配块并将对象编组到该块中来发送消息.然后,它通过message_queue发送一个小对象,该对象保存块的位置(偏移量)和大小. 消费者从队列

  • c – 共享内存中的STL容器(Windows)2019-07-23 08:04:16

    我正在开发一个由2个进程组成的应用程序,这些进程必须共享一些数据结构.这些类组织在不同的库中,库用于不同的应用程序. >我的第一次尝试是在Win32中使用Named Shared Memory,但问题是我不能使用STL容器. >寻找解决方案,我找到了Boost Interprocess,如果我理解,我必须将我的类中的

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有