#1211: Interprocess tests hang when run in parallel

#1080 boost::interprocess win32 global file mapping issue 

[SVN r38951]
This commit is contained in:
Ion Gaztañaga
2007-08-25 19:10:12 +00:00
parent 3a18bed072
commit 9915fc41ab
24 changed files with 308 additions and 220 deletions

View File

@@ -26,7 +26,7 @@
#include "expand_bwd_test_allocator.hpp"
#include "expand_bwd_test_template.hpp"
#include "allocator_v1.hpp"
#include "get_compiler_name.hpp"
#include "get_process_id_name.hpp"
using namespace boost::interprocess;
@@ -79,16 +79,16 @@ int string_test()
const int MaxSize = 100;
std::string compiler_name;
test::get_compiler_name(compiler_name);
std::string process_name;
test::get_process_id_name(process_name);
//Create shared memory
shared_memory_object::remove(compiler_name.c_str());
shared_memory_object::remove(process_name.c_str());
{
managed_shared_memory segment
(create_only,
compiler_name.c_str(),//segment name
65536); //segment size in bytes
process_name.c_str(),//segment name
65536); //segment size in bytes
ShmemAllocatorChar shmallocator (segment.get_segment_manager());
@@ -264,7 +264,7 @@ int string_test()
segment.destroy_ptr(shmStringVect);
delete stdStringVect;
}
shared_memory_object::remove(compiler_name.c_str());
shared_memory_object::remove(process_name.c_str());
return 0;
}