Version 1.05 allows 2 or more unrelated processes to share
objected instantiated in a common C++ STL container. The allocator is a shared, pooled memory allocator which works with gcc 3.2.2 and glibc-2.3.2. The project uses POSIX shared memory calls.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Download the new release. In the regression test suite
there is a test case file called
test/map_with_string_index.cc
which has relevant examples. There are also examples in
the
include/pooled_allocator.h
file. A map with a string index is a little tricky because the
the string index characters must also be allocated in shared
memory. So you need to use the basic string class. See the examples and post more questions if you need further assistance. Also if you have any suggestions, please post them as well.
marc
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Version 1.05 allows 2 or more unrelated processes to share
objected instantiated in a common C++ STL container. The allocator is a shared, pooled memory allocator which works with gcc 3.2.2 and glibc-2.3.2. The project uses POSIX shared memory calls.
please send me a sample code to use with map in this version. I'm eager to use it. many thanks.
Download the new release. In the regression test suite
there is a test case file called
test/map_with_string_index.cc
which has relevant examples. There are also examples in
the
include/pooled_allocator.h
file. A map with a string index is a little tricky because the
the string index characters must also be allocated in shared
memory. So you need to use the basic string class. See the examples and post more questions if you need further assistance. Also if you have any suggestions, please post them as well.
marc