forked from enlightenment/efl
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:
parent
4bbe5ee058
commit
04c6313114
|
@ -67,6 +67,7 @@ ecore_exe_pipe_run(const char *exe_cmd,
|
||||||
Ecore_Exe_Flags flags,
|
Ecore_Exe_Flags flags,
|
||||||
const void *data)
|
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));
|
Ecore_Exe *ret = eo_add(MY_CLASS, NULL, ecore_obj_exe_command_set(eo_self, exe_cmd, flags));
|
||||||
if (ret)
|
if (ret)
|
||||||
{
|
{
|
||||||
|
|
|
@ -184,6 +184,7 @@ ecore_timer_add(double in,
|
||||||
Ecore_Timer_Legacy *legacy;
|
Ecore_Timer_Legacy *legacy;
|
||||||
Eo *timer;
|
Eo *timer;
|
||||||
|
|
||||||
|
EINA_MAIN_LOOP_CHECK_RETURN_VAL(NULL);
|
||||||
legacy = calloc(1, sizeof (Ecore_Timer_Legacy));
|
legacy = calloc(1, sizeof (Ecore_Timer_Legacy));
|
||||||
if (!legacy) return NULL;
|
if (!legacy) return NULL;
|
||||||
|
|
||||||
|
@ -205,6 +206,7 @@ ecore_timer_loop_add(double in,
|
||||||
Ecore_Timer_Legacy *legacy;
|
Ecore_Timer_Legacy *legacy;
|
||||||
Eo *timer;
|
Eo *timer;
|
||||||
|
|
||||||
|
EINA_MAIN_LOOP_CHECK_RETURN_VAL(NULL);
|
||||||
legacy = calloc(1, sizeof (Ecore_Timer_Legacy));
|
legacy = calloc(1, sizeof (Ecore_Timer_Legacy));
|
||||||
if (!legacy) return NULL;
|
if (!legacy) return NULL;
|
||||||
|
|
||||||
|
@ -342,6 +344,7 @@ _efl_loop_timer_pending_get(Eo *obj EINA_UNUSED, Efl_Loop_Timer_Data *timer)
|
||||||
EAPI void
|
EAPI void
|
||||||
ecore_timer_freeze(Ecore_Timer *timer)
|
ecore_timer_freeze(Ecore_Timer *timer)
|
||||||
{
|
{
|
||||||
|
EINA_MAIN_LOOP_CHECK_RETURN;
|
||||||
ECORE_TIMER_CHECK(timer);
|
ECORE_TIMER_CHECK(timer);
|
||||||
eo_event_freeze(timer);
|
eo_event_freeze(timer);
|
||||||
}
|
}
|
||||||
|
@ -373,6 +376,7 @@ ecore_timer_freeze_get(Ecore_Timer *timer)
|
||||||
{
|
{
|
||||||
int r = 0;
|
int r = 0;
|
||||||
|
|
||||||
|
EINA_MAIN_LOOP_CHECK_RETURN_VAL(EINA_FALSE);
|
||||||
r = eo_event_freeze_count_get(timer);
|
r = eo_event_freeze_count_get(timer);
|
||||||
return !!r;
|
return !!r;
|
||||||
}
|
}
|
||||||
|
@ -388,6 +392,7 @@ _efl_loop_timer_eo_base_event_freeze_count_get(Eo *obj EINA_UNUSED, Efl_Loop_Tim
|
||||||
EAPI void
|
EAPI void
|
||||||
ecore_timer_thaw(Ecore_Timer *timer)
|
ecore_timer_thaw(Ecore_Timer *timer)
|
||||||
{
|
{
|
||||||
|
EINA_MAIN_LOOP_CHECK_RETURN;
|
||||||
ECORE_TIMER_CHECK(timer);
|
ECORE_TIMER_CHECK(timer);
|
||||||
eo_event_thaw(timer);
|
eo_event_thaw(timer);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue