From fa1e2c3706db3590c1442a4d3ef6aa61f7eac762 Mon Sep 17 00:00:00 2001 From: cedric 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. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@61897 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore/ecore.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 ; -- 2.7.4