Lazy g_main_loop()
Kyryll A Mirnenko aka Mirya
mirya at zoc.com.ua
Thu Sep 27 06:31:43 EDT 2007
On Thursday 27 September 2007 13:20, I wrote:
> Back to this thread:
> I've rebuilt glib20 with #define G_MAIN_POLL_DEBUG (gmain.c), it now
> outputs some data about polling, what I have from debug is:
>
> [my routine from another thread says it has just called g_idle_add_full()
> to add my callback ]
> [18 seconds of inactivity]
> g_main_poll(5) timeout: 18125 - elapsed 18.1255200000 seconds
> [my callback says it has just been entered]
>
> Maybe someone knows, why those 18 seconds were wasted.
Event more info:
[mainloop thread: Entering g_main_context_poll]
g_main_poll(5) timeout: 13553
[another thread: my routine from another thread says it has just called
g_idle_add_full() to add my callback ]
13 seconds wasted
g_main_poll(5) timeout: 13553 - elapsed 13.5543460000 seconds
[mainloop thread: Exiting: g_main_context_poll]
[mainloop thread: my callback says it has just been entered]
--
Regards, Mirya
ICQ #313898202
More information about the Devel
mailing list