[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: toolkits question
Erez Doron wrote:
> HI
>
> in all the toolkits i know (i.e. motif and qt)
> and I'm sure it is the same with the others,
> everything is written as event-drivven
> (i.e. when a mouse is move over, or a key is pressed
> or the mouse is clicked)
>
> what if I also want to do things in the background.
> (without forking) ?
>
> for example, in qt, after all was initialized,
> one calls main_widget.exec();
> how do i do other staff at the same time
>
> regards
> erez.
Check out XtAppAddWorkProc. Dunno if that's what you meant, but the
toolkit executes the procedure on an opportunistic basis. I think the procedure
should have a short execution time as it is blocking.
--
Yuval El-Hanany | Kawasaki GPZ500 '97 |
qwmiwn@geocities.com | | Have backpack,
Home : 972-3-5243488 | Debian Linux Inside | will travel
Work : 972-9-9586077-12| |