Using d-bus from multiple threads?

Ivan Barr itb.wrk at gmail.com
Mon Aug 23 10:34:37 PDT 2010


Thanks Ville,

Is this generally received wisdom or from painful personal experience? 
Are the d-bus libraries designed to be thread safe or is it that it just doesn't work very well?



On 23 Aug 2010, at 17:48, "Ville M. Vainio" <vivainio at gmail.com> wrote:

> On Mon, Aug 23, 2010 at 6:39 PM, Ivan Barr <itb.wrk at gmail.com> wrote:
> 
>> Are there any guidelines to follow when using d-bus from multiple threads? I
> 
> Basic guideline is "don't". I hear new versions of dbus may be safer
> in this regard, but at least the versions currently in widespread use
> are not threadsafe.
> 
> You should delegate your dbus operations to mainloop.
> 
> -- 
> Ville M. Vainio @@ Forum Nokia


More information about the dbus mailing list