EAPI Eina_Future_Scheduler *
efl_loop_future_scheduler_get(const Eo *obj)
{
+ Efl_Loop *loop;
+
if (!obj) return NULL;
if (efl_isa(obj, EFL_LOOP_CLASS))
}
return &(pd->future_scheduler.eina_future_scheduler);
}
+ if (efl_isa(obj, EFL_LOOP_CONSUMER_CLASS))
+ return efl_loop_future_scheduler_get(efl_loop_get(obj));
+
+ loop = efl_provider_find(obj, EFL_LOOP_CLASS);
+ if (loop)
+ return efl_loop_future_scheduler_get(loop);
- return efl_loop_future_scheduler_get(efl_loop_get(obj));
+ return NULL;
}
#define EFL_LOOP_EXTRA_OPS \