mirror of
https://github.com/boostorg/interprocess.git
synced 2026-01-26 18:42:14 +00:00
Merge interprocess from trunk
[SVN r78594]
This commit is contained in:
@@ -43,12 +43,12 @@ int main ()
|
||||
//Create shared memory
|
||||
//<-
|
||||
#if 1
|
||||
managed_shared_memory segment(create_only,
|
||||
managed_shared_memory segment(create_only,
|
||||
test::get_process_id_name(), //segment name
|
||||
65536);
|
||||
#else
|
||||
//->
|
||||
managed_shared_memory segment(create_only,
|
||||
managed_shared_memory segment(create_only,
|
||||
"MySharedMemory", //segment name
|
||||
65536);
|
||||
//<-
|
||||
@@ -68,7 +68,7 @@ int main ()
|
||||
//is the same, this private_node_allocator will have its own pool so
|
||||
//"allocator_instance2" CAN'T deallocate nodes allocated by "allocator_instance".
|
||||
//"allocator_instance2" is NOT equal to "allocator_instance"
|
||||
assert(allocator_instance != allocator_instance2);
|
||||
assert(allocator_instance != allocator_instance2);
|
||||
|
||||
//Create another node_allocator using copy-constructor.
|
||||
private_node_allocator_t allocator_instance3(allocator_instance2);
|
||||
|
||||
Reference in New Issue
Block a user