Signals & threads - low level C API [Newbie question]

Thiago Macieira thiago at kde.org
Sat Jan 27 01:04:24 PST 2007


Krishna R wrote:
>Hmm looks like this may not be it. It works great except that the filter
>func is never called to rcv the *first* message sent.

Correct. You need to verify if the dispatch status is DATA_REMAINS every 
time you do a read/write action (like 
dbus_connection_send_with_reply_and_block). This means you need to wake 
up your "mainloop" implementation just as if there had been activity on 
the socket.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- 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/20070127/e1b0b6b9/attachment.pgp


More information about the dbus mailing list