[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Idle func -> 100% CPU usage
- From: "Christopher T. Lansdown" <lansdoct screech cs alfred edu>
- To: Gert <gs2 nowmoo demon nl>
- cc: "GTK+ App Developer's Mailing List." <gtk-app-devel-list redhat com>
- Subject: Re: Idle func -> 100% CPU usage
- Date: Sun, 27 Jun 1999 21:19:30 -0400 (EDT)
Gert,
You might consider using a gtk_timeout function, basically a timer
but it only runs while the gtk even loop is running. You could set
it to whatever you want 20ms say, and thus it will call your function
every 20ms while the gtk main event loop is running. This way all gtk
stuff will be serviced prettymuch normally with nearly top priority, and
you will pretty frequently call your tk function.
-Chris
--
lansdoct@cs.alfred.edu
"If I had had more time I would have not written you at all." - Pascal
Linux Programs: http://cs.alfred.edu/~lansdoct/linux/
Linux - Get there. Today.
Evil Overlord Quote of the Day:
150.I will provide funding and research to develop tactical and strategic
weapons covering a full range of needs so my choices are not limited to
"hand to hand combat with swords" and "blow up the planet".
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]