mirror of
https://github.com/boostorg/interprocess.git
synced 2026-01-19 04:12:13 +00:00
Changes for Boost.1.39
[SVN r51964]
This commit is contained in:
@@ -18,7 +18,12 @@ using namespace boost::interprocess;
|
||||
|
||||
int main ()
|
||||
{
|
||||
shared_memory_object::remove("MySharedMemory");
|
||||
//Remove shared memory on construction and destruction
|
||||
struct shm_destroy
|
||||
{
|
||||
shm_destroy() { shared_memory_object::remove("MySharedMemory"); }
|
||||
~shm_destroy(){ shared_memory_object::remove("MySharedMemory"); }
|
||||
} remover;
|
||||
|
||||
//Create shared memory
|
||||
managed_shared_memory segment(create_only,
|
||||
|
||||
Reference in New Issue
Block a user