Query on operation of dbus_connection_dispatch() and method call
havoc.pennington at gmail.com
Tue Mar 24 21:19:31 PDT 2009
On Tue, Mar 24, 2009 at 9:50 PM, Soh Kam Yung <sohkamyung at gmail.com> wrote:
> Regarding the statement: "a nonblocking dbus_connection_send() from
> another thread may well work fine". Does this mean that if I want to
> send and wait for a reply in a thread, I cannot use
> dbus_connection_send_with_reply_and_block()? It is because of
> interaction with the d-bus dispatcher in my mainloop?
> Would this also apply to dbus_pending_call_block()?
There seem to be some issues reported in the bug tracker and on the
list with blocking in another thread. Two possible solutions are 1)
debug those issues and send a patch or 2) use a main loop instead
(with dbus_pending_call_set_notify() for example as you say) and only
use the thread to do your work, don't use the thread to interact with
More information about the dbus