This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Placement into shared memory?


> What  is the  current  correct approach  to  instantiating objects  in
> shared memory so that multiple processes can access the C++ objects?

Why exactly do you want to do this? Maybe it is much easier to share
data not objects. Simply then you must create an object in each
process and for data processing use shared memory data (of course some
locking will be needed if data will be changed).

Or try using threads, if i'm not wrong, they exist in the same memory
and they will see your object correctly.

Arturas Moskvinas


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]