
12 Mar
2012
12 Mar
'12
8:38 p.m.
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 address. Best, Ion