question on glib main loop



Hello.

I am trying to figure out why glib does not use 100% CPU
in its main loop, i took a look at the sources, but i couldnt
find the reason. Doesnt it do an endless loop checking
all the sources again and again?
I tried to write my own program that also checks such things
like timeouts, socket read/write-ability (without using glib)
but it uses 100% CPU.
Can anyone explain why glib/gdk/gtk doesnt do that?

Markus.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]