[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Idle func -> 100% CPU usage
- From: Gert <gs2 nowmoo demon nl>
- To: gtk-app-devel-list redhat com
- Subject: Idle func -> 100% CPU usage
- Date: Mon, 28 Jun 1999 02:14:50 +0200
Hi,
I use have a Tcl interpreter running in a gtk application, and because I want
the Tcl event loop running, I connect a function with gtk_idle_add, that runs
Tcl_ServiceAll(); and then returns TRUE;
This, however, results in a 100% CPU usage for my program :(
Is there a way to decrease this?
I thought about a gtk_idle_add with a short idle time (50 ms or so), but I
don't know if this will disrupt gtk's behaviour (that has the priority)...
Any thoughts about this?
Gert
--
_______________________________________________________________________________
~ Gert, Gs2, The Blue Mage - whatever you prefer
'v' E-Mail : Gs2@dds.nl
// \\ Computer : nowmoo.demon.nl
/( )\ Project : gMOO, a MOO (and MUD) client for the unises
^`~'^ HomePage : http://www.nowmoo.demon.nl
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]