From: Enlightenment S. <no-...@en...> - 2011-07-29 14:59:52
|
Log: 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. Author: cedric Date: 2011-07-29 07:59:43 -0700 (Fri, 29 Jul 2011) New Revision: 61897 Trac: http://trac.enlightenment.org/e/changeset/61897 Modified: trunk/ecore/src/lib/ecore/ecore.c Modified: trunk/ecore/src/lib/ecore/ecore.c =================================================================== --- trunk/ecore/src/lib/ecore/ecore.c 2011-07-29 14:56:42 UTC (rev 61896) +++ trunk/ecore/src/lib/ecore/ecore.c 2011-07-29 14:59:43 UTC (rev 61897) @@ -225,6 +225,12 @@ { Ecore_Safe_Call *order; + if (eina_main_loop_is()) + { + callback(data); + return ; + } + order = malloc(sizeof (Ecore_Safe_Call)); if (!order) return ; |