Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost interprocess containers - performance issue
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2012-03-12 16:38:52

El 12/03/2012 3:54, Naveen Santhapuri escribió:
> My alternative strategy without boost ipc:
> I will be running on 64bit linux and hoping to map the shared memory
> segment to the same location in all instances using shmat(). To achieve
> that, the first instance gets the shared memory segment address, which
> will be used by the other instances that read from the shared memory. If
> I can map them to the same address, can I use raw pointers without any
> problem?

Yes, if you manage to map it to the same address in all processes you
can use raw pointers. However you still can't use virtual functions/base
classes, as each processes has the virtual function table at a different



Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at