Re: libdbus or gio dbus for multi-threaded service ?
Lawrence D'Oliveiro <ldo-kC51rjc0cqs1dNLGKZg6taU/[email protected]>
| Newsgroups | gmane.comp.freedesktop.dbus |
|---|---|
| Organization | Geek Central |
| Message-ID | <[email protected]> |
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? _______________________________________________ dbus mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dbus