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:
Cedric BAIL 2011-07-29 14:59:43 +00:00
parent 2b574523d2
commit 236b7fca74
1 changed files with 6 additions and 0 deletions

View File

@ -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 ;