mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 04:42:14 +00:00
Improve debugging notes for main loop start/stop
This way, we can track when we quit the main loop.
This commit is contained in:
parent
5b9c6f49c4
commit
abda3ee4ce
@ -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--;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user