[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: threading in kde
From: Andrew Sutton <ansutton () sep ! com>
Date: 2001-09-07 19:33:25
[Download RAW message or body]
On Friday 07 September 2001 12:33, Rik Hemsley wrote:
> #if Andrew Sutton
> Also, thread safety is not an all-or-nothing thing.
>
> * It is possible to safely add a Qt interface to a threaded application
> without needing to even link to the MT version of the Qt library.
>
> * Using qt-mt, you may safely send events from one thread to the GUI
> thread. This is sufficient thread safety for many applications.
>
> Qt is nowhere near completely thread safe and likely will stay that
> way for many years, perhaps for its lifetime.
actually, if the qt folks would come out and say, "when writing a
multithreaded gui application, the gui will run in one thread and all gui
generated events will be handled in the same thread context" it would be a
nice place to start. that would eliminate any confusion in what needs to be
made thread safe.
actually, i'm starting to think that it does work that way.
> Does anyone know of a completely thread-safe development platform ?
windows. hahahahahahahahahaha... ow... i hurt myself laughing :)
there's no such thing. the best you can hope for is a re-entrant system.
anybody who knows a little about threading can manage to code around even the
best guards to prevent race conditions.
Andrew Sutton
ansutton@sep.com
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic