(DBUS/Python) async_callbacks vs. reply_/error_handler

Pavel Strashkin pavel.strashkin at gmail.com
Wed Feb 16 23:52:26 PST 2011


No, it doesn't if your client/service implementation takes into
account the fact that everything is asynchronous. For an example if
you use threads - you have to enable it in dbus/glib at startup time.

2011/2/17 Jason Heeris <jason.heeris at gmail.com>:
> On 17 February 2011 15:39, Pavel Strashkin <pavel.strashkin at gmail.com> wrote:
>> Client is always blocked if you don't use reply_handler/error_handler
>> to do a call.
>
> Okay, thanks. Final question: if I use both, will anything bad happen?
> (I'd use the reply/error handler in the client to avoid blocking, and
> async_callbacks in the service to work better with Twisted's
> Deferreds.)
>
> I'd assume that the service callback would simply trigger the client
> handler, as it would for a "return" in sychronous work... is that
> correct?
>
> — Jason
>


More information about the dbus mailing list