From 236b7fca7472e69222a739c2ee49271c9535796b Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Fri, 29 Jul 2011 14:59:43 +0000 Subject: [PATCH] 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. SVN revision: 61897 --- legacy/ecore/src/lib/ecore/ecore.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/legacy/ecore/src/lib/ecore/ecore.c b/legacy/ecore/src/lib/ecore/ecore.c index b7e0fbd99a..d4d2f739c4 100644 --- a/legacy/ecore/src/lib/ecore/ecore.c +++ b/legacy/ecore/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 ;