dbus and multithreading

Leonid Yurchenko nocturne at qarea.com
Wed Jun 1 11:56:31 PDT 2011


Hi Simon.

Okay, thank you for clarifying this.

On 06/01/2011 07:55 PM, Simon McVittie wrote:
> On Wed, 01 Jun 2011 at 19:04:19 +0300, Leonid Yurchenko wrote:
>> So question is open
>> for me - is dbus glib considered as thread safe?
> No, there's no locking at all in dbus-glib.
>
>> And will these
>> issues be addressed any time soon, or we are stuck with one-threaded
>> (gmainloop) approach?
> I have no particular interest in making dbus-glib thread-safe, although I'll
> apply good patches if they come with regression tests.
>
> I'd recommend using GDBus (part of GIO, in modern GLib releases), particularly
> if you like threads: GDBus is already much closer to thread-safe than
> dbus-glib, and is better-designed and much more actively maintained.
>
>      S
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus



More information about the dbus mailing list