Subject: Re: [Boost-users] How to Read the stored memory map in C++
From: Christoph Gysin (christoph.gysin_at_[hidden])
Date: 2009-09-18 13:05:58


>   //Remove shared memory on construction and destruction
>   struct shm_remove
>   {
>      shm_remove() { shared_memory_object::remove("MySharedMemory"); }
>      ~shm_remove(){ shared_memory_object::remove("MySharedMemory"); }
>   } remover;

You tell Process1 to clean it up on exit.

Chris

-- 
echo mailto: NOSPAM !#$.'<*>'|sed 's. ..'|tr "<*> !#:2" org_at_fr33z3