[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: KPARTs question.
From: Simon Hausmann <hausmann () kde ! org>
Date: 2001-10-31 16:24:23
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic