
Borse, Ganesh wrote:
Hi, I am developing an application with 2 unrelated, arbitrary processes having a C++ shared hash map between them to store data. However, I am facing the problem of creating this template hash map in shared memory. Can boost be used for this purpose? Can anybody please suggest me the implementation which can be used to do this? Thanks in advance.
The hash map containers that were being developed by Daniel James (take a look at Vault/Containers) used to be shared memory friendly (I mean, compatible with Boost.Interprocess). I haven't tested them recently, though. To share containers between two unrelated processes please see Boost.Interprocess (currently in the CVS, and BoostVault/Concurrent Programming). Online docs here: http://ice.prohosting.com/newfunk/boost/libs/interprocess/
Best Regards, Ganesh B.
Regards, Ion