Boost logo

Boost Users :

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

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net