CPU Gobbler in Geany

Marcus D. Leech mleech at ripnet.com
Tue Nov 10 20:30:03 UTC 2009


Geany (F11, up to date) gobbles CPU while waiting for a Build or Compile 
to complete.

My *suspicion* is that it does (conceptually):

              foo = popen (build-command-string, "r")
              set filedescriptor_of(foo) == NON_BLOCK

             toolkit-add-input-event(foo)

If the event handler in the toolkit uses select(), it will continuously 
return "ready" on that
   file descriptor, because it's set non-blocking.  This is a classic 
mistake, but maybe it's something
   else entirely.  Problem is, the Geany CPU gobbling tends to compete 
with the compilers
   CPU requirements :-(

Cheers
Marcus





More information about the users mailing list