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

Re: shared memory queue



Oops first post missed the list...

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).

BTW I think there is IPC in gnome, you might look into dbus, I'm not
exactly sure what IPC is the one to use in gnome right now...

Cheers,
                 -Tristan


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