[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Threading in KDE-programs
From:       "Tal Rotbart" <tal () netbox ! com>
Date:       2000-05-18 23:07:54
[Download RAW message or body]

Hmm...
Maybe more powerful semaphores are in order? KSemaphore anyone?

Tal

----- Original Message -----
From: "Rik Hemsley" <rik@kde.org>
To: <kde-devel@kde.org>
Sent: Thursday, May 18, 2000 22:29
Subject: Re: Threading in KDE-programs


> Real-To:  Rik Hemsley <rik@kde.org>
>
> #if Kris Gijbels
> > Question from a beginning KDE programmer :)
> >
> > I've never written programs with a GUI before. I've been trying out
> > Java+Swing a bit, but after finding out that this tends to eat huge
> > amounts of memory, I decided to try out KDE.
> >
> > My question: in Java you  use subclasses of class Thread to make well,
> > threads. How do I do this with Qt/KDE? I have a book on Qt but it
> > doesn't seem to mention this. And I can't find anything about it on
> > the kde development documentation page. Is there something similar in
> > KDE, or do I just use fork or the pthread-library or whatever? :)
>
> You can hack qpthread (not related to Qt) to use GNU Pth and use that.
>
> This allows you do inherit from QpThread, much like Java does it.
>
> I tried it, seems to work, but haven't tested it much. We had a discussion
> about it a while back but nothing concrete has been done about it yet.
>
> Rik
>
>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic