Starting the kdbus discussions
Andrew Cooks
acooks at gmail.com
Sun Jan 19 14:54:44 PST 2014
On Sat, Jan 18, 2014 at 3:51 AM, David Zeuthen <zeuthen at gmail.com> wrote:
> Hi,
>
> On Fri, Jan 17, 2014 at 11:33 AM, Lennart Poettering <mzqohf at 0pointer.de> wrote:
>
>> What does the worker thread
>> bring as a benefit over the way libdbus1 handles this?
>
> The ability to have multiple threads doing both sync and async calls
> and have this work without these interfering with each other (for
> example, a blocking call in one thread should not prevent delivery of
> D-Bus messages in other threads). In the case of async calls, each
> thread then run its own mainloop. See
>
> https://git.gnome.org/browse/glib/tree/gio/tests/gdbus-threading.c?id=2.39.3#n340
>
> for details. If you want your D-Bus library to do this kind of thing -
> and in GLib we really do - the straightforward way to do this involves
> a worker-thread....
Could you point me to an example of reasonably well designed code that
mixes sync and async calls?
Thanks,
a.
More information about the dbus
mailing list