dbus_connection_send_with_reply_and_block and unrelated messages

Kevin Krammer kevin.krammer at gmx.at
Mon May 29 08:10:32 PDT 2006


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 at gmx.at>
Qt/KDE Developer, Debian User
Moderator: www.mrunix.de (German), www.qtcentre.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20060529/fcc0382f/attachment.pgp


More information about the dbus mailing list