From kde-core-devel Wed Oct 31 16:24:23 2001 From: Simon Hausmann Date: Wed, 31 Oct 2001 16:24:23 +0000 To: kde-core-devel Subject: Re: KPARTs question. X-MARC-Message: https://marc.info/?l=kde-core-devel&m=100454555927860 On Wed, Oct 31, 2001 at 03:37:30PM +0100, Holger Freyther wrote: > Hi core, > I'm just asking myself if it would be possible to load a KPART that's runs > in adifferent thread or process. I know I could fork and the load it in the > model but it would be cool if it would be part of the kpart framework. Now we > depend Qt 3.0 with threads and the KPart could be a thread as well couldn't > This was just a thought I don't know if it's possible. If my mail is bullshit > just ignore it Nothing technically prevents one from having a part spawning a thread, as long as the thread rules listed in http://doc.trolltech.com/3.0/threads.html are obeyed. That especially means the part as well as the widget need to be allocated/initialized from within the gui thread. As kio uses socketnotifiers and timers the KIO operations must be started from the gui thread as well. And there are probably a few more exceptions of that type. I'm using threads in konq/win and for me it was sth. completely new to learn. It's fun to use them, but it requires a hell of a lot of attention when writing code. (IMHO) Simon