From: cedric Date: Fri, 29 Jul 2011 14:59:43 +0000 (+0000) Subject: ecore: now you don't need to care if you are in the main loop or not when you call... X-Git-Tag: accepted/2.0/20130306.224007~156^2~188 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=09cb4505b317dc297585418f2e38670af47f85c8;p=profile%2Fivi%2Fecore.git ecore: now you don't need to care if you are in the main loop or not when you call ecore_main_loop_thread_safe_call. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@61897 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/ecore/ecore.c b/src/lib/ecore/ecore.c index b7e0fbd..d4d2f73 100644 --- a/src/lib/ecore/ecore.c +++ b/src/lib/ecore/ecore.c @@ -225,6 +225,12 @@ ecore_main_loop_thread_safe_call(Ecore_Cb callback, void *data) { Ecore_Safe_Call *order; + if (eina_main_loop_is()) + { + callback(data); + return ; + } + order = malloc(sizeof (Ecore_Safe_Call)); if (!order) return ;