Commit abda3ee4 authored by Emmanuele Bassi's avatar Emmanuele Bassi

Improve debugging notes for main loop start/stop

This way, we can track when we quit the main loop.
parent 5b9c6f49
......@@ -837,8 +837,6 @@ clutter_main (void)
return;
}
clutter_main_loop_level++;
#ifdef CLUTTER_ENABLE_PROFILE
if (!prev_poll)
{
......@@ -847,6 +845,10 @@ clutter_main (void)
}
#endif
clutter_main_loop_level++;
CLUTTER_NOTE (MISC, "Entering main loop level %d", clutter_main_loop_level);
loop = g_main_loop_new (NULL, TRUE);
main_loops = g_slist_prepend (main_loops, loop);
......@@ -861,6 +863,8 @@ clutter_main (void)
g_main_loop_unref (loop);
CLUTTER_NOTE (MISC, "Leaving main loop level %d", clutter_main_loop_level);
clutter_main_loop_level--;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment