DBUS - how to handle muliple bus-message in parallel

Lawrence D'Oliveiro ldo at geek-central.gen.nz
Mon Aug 20 22:08:34 UTC 2018


On Mon, 20 Aug 2018 20:10:49 +0900, dtdang wrote:

> Currently, I am trying to create a server API to
> handle multiple dbus-message in parallel.

When you receive a message, it is up to you to construct and return the
reply at some point with
dbus_message_new/dbus_message_new_method_return. To avoid holding up
the dispatching of subsequent messages in the meantime, you need to do
your actual message processing on a separate thread.

However, for the sake of your own sanity (and that of libdbus as well),
it is probably best to ensure that all libdbus calls happen on a single
thread.


More information about the dbus mailing list