From aefe6c74fa52096d4437946914d12600e6ec8d59 Mon Sep 17 00:00:00 2001 From: raster Date: Fri, 1 Oct 2010 06:59:48 +0000 Subject: [PATCH] set EDJE_SELF_FEED_DEBUG if u want to know abotu self-feeding edje signals/messages git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@52943 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/edje_message_queue.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/lib/edje_message_queue.c b/src/lib/edje_message_queue.c index 26b2378..6ace9be 100644 --- a/src/lib/edje_message_queue.c +++ b/src/lib/edje_message_queue.c @@ -769,6 +769,18 @@ _edje_message_queue_process(void) /* to get the idle enterer to be run again */ if (msgq) { + static int self_feed_debug = -1; + + if (self_feed_debug == -1) + { + const char *s = getenv("EDJE_SELF_FEED_DEBUG"); + if (s) self_feed_debug = atoi(s); + else self_feed_debug = 0; + } + if (self_feed_debug) + { + WRN("Edje is in a self-feeding message loop (> 8 loops needed)"); + } ecore_timer_add(0.0, _edje_dummy_timer, NULL); } } -- 2.7.4