waiting without polling
- From: Philippe Ribet <p ribet worldonline fr>
- To: gtk-devel <gtk-devel-list gnome org>
- Subject: waiting without polling
- Date: Tue, 30 Oct 2001 19:23:17 +0100
Hello,
I looked at gdk_event_prepare, gdk_event_check, gdk_event_dispatch but I
can't see where program is waiting. I mean, if you call gtk_main(), the
program is waiting for events, run timeouts sources, but do not poll
(heavilly loading processor if looking if there is something to do).
Does g_main_iterate do this "waiting", was a source added with very
short timeout (I found none), or it has to do with poll_arrays (where to
see that in code) ?
Hope my english is understandable,
Thanks for helping me to understand this internal events loop.
Philippe Ribet
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]