forked from enlightenment/efl
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
This commit is contained in:
parent
2b574523d2
commit
236b7fca74
|
@ -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 ;
|
||||
|
||||
|
|
Loading…
Reference in New Issue