RE: [Boost-Users] Re: boost::pool + shared memory
I've been using the ACE_Malloc framework from ACE (http://cs.wustl.edu/~schmidt/ACE.html) to solve a similar problem (sharing statics between DLL's). It takes a little while to figure out because the documentation is a little slim, but once you do it pays off pretty quickly. Doxygen documentation for ACE_Malloc is at: http://doc.ece.uci.edu/Doxygen/Current/html/ace/classACE__Malloc__T.html and the shared_mem memory pool is at: http://doc.ece.uci.edu/Doxygen/Current/html/ace/classACE__Shared__Memory__Po ol.html I ended up not having to write an STL allocator using ACE_Malloc, but I don't think it would be too difficult. If you get it right, a lot of ACE users would be your friend :) Tom Matelich
-----Original Message----- From: xpav_2000 [mailto:alex@pavloff.net] Sent: Tuesday, January 29, 2002 6:01 PM To: Boost-Users@yahoogroups.com Subject: [Boost-Users] Re: boost::pool + shared memory
--- In Boost-Users@y..., Tom Matelich
wrote: Looks like pool may not be what I need, darn. I like to weasel as many boost classes into my project as possible.
I've got a similar question -- I've got a whole pile of strings that I want to share between processes, and I was thinking a reference- counted string implementation with the actual data in shared memory would be a good way to do that.
Do you think a memory pool placed in shared memory, with the string class modified to allocate/deallocate there would work?
------------------------ Yahoo! Groups Sponsor ---------------------~--> Tiny Wireless Camera under $80! Order Now! FREE VCR Commander! Click Here - Only 1 Day Left! http://us.click.yahoo.com/nuyOHD/7.PDAA/yigFAA/EbFolB/TM -------------------------------------------------------------- -------~->
Info: http://www.boost.org Wiki: http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl Unsubscribe: mailto:boost-users-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
participants (1)
-
Tom Matelich