Re: shared memory queue



2008/10/6 Luka Napotnik <luka napotnik gmail com>:
Hello.

I have a problem that I need an GAsyncQueue shared among multiple
processes.
If I allocate a structure with shared memory and then allocate the
GAsyncQueue with g_async_queue_new() to a structure member, is the queue
shared or not? And if not, is there a way to do this?

No.

I guess it would be possible to design an IPC that had a similar
api, but the root of the issue is that you need to use sockets/pipes
to communicate between processes (while you might use a shared
memory slab for the actual data, thats just a detail).

Cheers,
                  -Tristan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]