mirror of
https://github.com/boostorg/interprocess.git
synced 2026-01-19 04:12:13 +00:00
Fixed intrusive_ptr and named condition test and added documentation.
[SVN r40454]
This commit is contained in:
@@ -81,22 +81,15 @@ int main ()
|
||||
|
||||
//Construct, dump to a file
|
||||
shmem_vect = segment.construct<MyVect> (allocName) (myallocator);
|
||||
segment.save_to_file(filename.c_str());
|
||||
|
||||
/*
|
||||
//Recreate objects in a new shared memory check object is present
|
||||
bool created = segment.create_from_file("shmem_file", shMemName);
|
||||
if(!created)
|
||||
return 1;
|
||||
shmem_vect = segment.find<MyVect>(allocName).first;
|
||||
if(!shmem_vect)
|
||||
if(shmem_vect != segment.find<MyVect>(allocName).first)
|
||||
return 1;
|
||||
//Destroy and check it is not present
|
||||
segment.destroy<MyVect> (allocName);
|
||||
res = (0 == segment.find<MyVect>(allocName).first);
|
||||
if(!res)
|
||||
return 1;
|
||||
*/
|
||||
|
||||
std::remove(filename.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user