From abda3ee4ce15121d3761fda5dc603f98e44b76d7 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 1 Jan 2015 15:09:23 +0000 Subject: [PATCH] Improve debugging notes for main loop start/stop This way, we can track when we quit the main loop. --- clutter/clutter-main.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/clutter/clutter-main.c b/clutter/clutter-main.c index 866d02b5d..5593ba64f 100644 --- a/clutter/clutter-main.c +++ b/clutter/clutter-main.c @@ -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--; }