libdbus or gio dbus for multi-threaded service ?

Lawrence D'Oliveiro ldo at geek-central.gen.nz
Wed Mar 14 23:56:52 UTC 2018


On Wed, 14 Mar 2018 12:07:09 +0000, Simon McVittie wrote:

> ... there is also a general worry that libdbus is probably less
> thread-safe than it was always meant to be, because we don't have a
> systematic model for what runs where, etc., which makes it very hard
> to say whether everything we do follows the intended model.
> 
> (Of course making a systematic model is a lot harder when we can't
> know which thread our callbacks are going to be called in.)

Would it help to impose the assumption that all calls to
dbus_timeout_handle() and dbus_watch_handle() should be made in the
same thread?

Would that ease the job of trying to keep track of what is going on?


More information about the dbus mailing list