将stl容器中的对象放置在共享内存中

 1、 gcc 上关于在共享内存中使用 stl 容器中对象的讨论。

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21251

2、http://sourceforge.net/projects/allocator/ 

3、OSSP mm

http://www.ossp.org/pkg/lib/mm/

据其介绍,只能用于 fork 的进程之间。

 

以下引用 ossp mm 的内容:OSSP mm is a 2-layer abstraction library which simplifies the usage of shared memory between forked (and this way strongly related) processes under Unix platforms.

 

盖因 fork 的进程,其虚表在内存中的地址相同。(嵌在了 .text 段)。于是,猜想可能这个库实现了虚对象在共享内存中的放置。

 

3、http://www.boost.org/doc/libs/1_38_0/libs/pool/doc/interfaces.html

 http://sourceforge.net/projects/allocator/

 

 

http://www.boost.org/doc/libs/1_38_0/libs/pool/doc/index.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值