[PATCH] KIO::SlaveBase and the event loop

Thiago Macieira thiago at kde.org
Tue Jul 15 00:02:25 BST 2008


Andreas Hartmetz wrote:
>On Monday 14 July 2008 21:04:01 Sebastian Trüg wrote:
>> Well, actually I need QDBus signals to be delivered which need and
>> event loop. That is the problem.
>
>I suspected that but you didn't mention it explicitly :)

I tried implementing that last year and gave up.

Also note that most ioslave operations are blocking. Proper D-Bus working 
requires a thread that won't block.

So, instead, I'd recommend starting a new thread and opening a D-Bus 
connection there. The D-Bus connection is handled by the thread that 
opened the connection.

-- 
  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: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080714/0968ed92/attachment.sig>


More information about the kde-core-devel mailing list