Tracking DBusWatches

Thiago Macieira thiago at kde.org
Fri Feb 9 09:49:32 PST 2007


Havoc Pennington wrote:
>This should be fine (with as you say the problem that your reply
>notifier is run in the other thread). The problem I mentioned would
>happen if you used send_with_reply_and_block(), because only one thread
>can block at a time or one of them gets stuck waiting for the socket
> lock.

Even if you use a non-blocking method (like send_with_reply), the thread 
that is doing the read_write doesn't know that there's more data. So it 
won't wake up and, therefore, won't send a thing.

-- 
  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/20070209/6b967e2e/attachment.pgp


More information about the dbus mailing list