[clutter/clutter-1.22] Improve debugging notes for main loop start/stop
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.22] Improve debugging notes for main loop start/stop
- Date: Thu, 1 Jan 2015 15:39:37 +0000 (UTC)
commit abda3ee4ce15121d3761fda5dc603f98e44b76d7
Author: Emmanuele Bassi <ebassi gnome org>
Date: Thu Jan 1 15:09:23 2015 +0000
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 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/clutter/clutter-main.c b/clutter/clutter-main.c
index 866d02b..5593ba6 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--;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]