[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-dbus
Subject:    Re: dbus_connection_send_with_reply_and_block and unrelated messages
From:       Kevin Krammer <kevin.krammer () gmx ! at>
Date:       2006-05-29 15:10:32
Message-ID: 200605291710.44064.kevin.krammer () gmx ! at
[Download RAW message or body]


On Sunday 28 May 2006 15:22, Thiago Macieira wrote:

> The reason I'm asking is that I'm making a call to
> org.freedesktop.DBus.RequestName. Before the reply comes in, we get two
> signals. This means those two signals will be in the dispatcher queue.
> But the Qt bindings won't see them until there's activity again in the
> D-BUS socket.

Another scenario is when you start an async call followed by a sync call 
without returing to the eventloop inbetween.

I solved this in the Qt3 backport of the bindings by offering a method to 
schedule (QTimer based) a call to the dispatch loop and added an appropriate 
warning to the async call's API docs.

Since this doesn't help in your case I guess I should rather trigger the 
scheduling always before returning from a sync call.

Cheers,
Kevin

-- 
Kevin Krammer <kevin.krammer@gmx.at>
Qt/KDE Developer, Debian User
Moderator: www.mrunix.de (German), www.qtcentre.org

[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic