Tracking DBusWatches

Thiago Macieira thiago at kde.org
Fri Feb 9 09:37:51 PST 2007


Havoc Pennington wrote:
>I think it's pretty useful to have a dispatch or read_write thread, and
>still send from other threads. You are probably right that flush()
>doesn't make sense in this context, but perhaps we at least should make
>send() wake up the thread blocking in read_write, or something like
> that.
>
>Another approach, we could separate the lock on the socket into a
>read-from-socket lock and a write-to-socket lock in theory, though in
>practice with the current code structure this would be painful.

That means watching one other fd for reading (a pipe, so that you can wake 
up from select(2)).

-- 
  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/8b076392/attachment.pgp


More information about the dbus mailing list