ecore - add more ecore main loop checks that were missing in some places

so 1 ecore_exe func was missing a main loop check... just to be sure.
This commit is contained in:
Carsten Haitzler 2016-07-14 08:55:03 +09:00
parent 4bbe5ee058
commit 04c6313114
2 changed files with 6 additions and 0 deletions

View File

@ -67,6 +67,7 @@ ecore_exe_pipe_run(const char *exe_cmd,
Ecore_Exe_Flags flags,
const void *data)
{
EINA_MAIN_LOOP_CHECK_RETURN_VAL(NULL);
Ecore_Exe *ret = eo_add(MY_CLASS, NULL, ecore_obj_exe_command_set(eo_self, exe_cmd, flags));
if (ret)
{

View File

@ -184,6 +184,7 @@ ecore_timer_add(double in,
Ecore_Timer_Legacy *legacy;
Eo *timer;
EINA_MAIN_LOOP_CHECK_RETURN_VAL(NULL);
legacy = calloc(1, sizeof (Ecore_Timer_Legacy));
if (!legacy) return NULL;
@ -205,6 +206,7 @@ ecore_timer_loop_add(double in,
Ecore_Timer_Legacy *legacy;
Eo *timer;
EINA_MAIN_LOOP_CHECK_RETURN_VAL(NULL);
legacy = calloc(1, sizeof (Ecore_Timer_Legacy));
if (!legacy) return NULL;
@ -342,6 +344,7 @@ _efl_loop_timer_pending_get(Eo *obj EINA_UNUSED, Efl_Loop_Timer_Data *timer)
EAPI void
ecore_timer_freeze(Ecore_Timer *timer)
{
EINA_MAIN_LOOP_CHECK_RETURN;
ECORE_TIMER_CHECK(timer);
eo_event_freeze(timer);
}
@ -373,6 +376,7 @@ ecore_timer_freeze_get(Ecore_Timer *timer)
{
int r = 0;
EINA_MAIN_LOOP_CHECK_RETURN_VAL(EINA_FALSE);
r = eo_event_freeze_count_get(timer);
return !!r;
}
@ -388,6 +392,7 @@ _efl_loop_timer_eo_base_event_freeze_count_get(Eo *obj EINA_UNUSED, Efl_Loop_Tim
EAPI void
ecore_timer_thaw(Ecore_Timer *timer)
{
EINA_MAIN_LOOP_CHECK_RETURN;
ECORE_TIMER_CHECK(timer);
eo_event_thaw(timer);
}