[PATCH] KIO::SlaveBase and the event loop

Sebastian Trüg strueg at mandriva.com
Tue Jul 15 09:18:17 BST 2008

On Tuesday 15 July 2008 01:02:25 Thiago Macieira wrote:
> 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.

what were the problems?

> 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.

hm, that is a possibility. Maybe even the better solution as it does not 
require any changes in kio.
I will try that then.


More information about the kde-core-devel mailing list