forked from enlightenment/efl
ecore: remove duplicated conditions
Summary: The macro already checks eina_main_loop_is() when DEBUG_THREADS is enabled. Test Plan: make Reviewers: segfaultxavi, ManMower, Hermet, bu5hm4n Reviewed By: bu5hm4n Subscribers: bu5hm4n, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7183
This commit is contained in:
parent
f802c8f482
commit
9de082eb83
|
@ -513,10 +513,7 @@ _ecore_animator_add(Ecore_Task_Cb func,
|
||||||
{
|
{
|
||||||
Ecore_Animator *animator;
|
Ecore_Animator *animator;
|
||||||
|
|
||||||
if (EINA_UNLIKELY(!eina_main_loop_is()))
|
EINA_MAIN_LOOP_CHECK_RETURN_VAL(NULL);
|
||||||
{
|
|
||||||
EINA_MAIN_LOOP_CHECK_RETURN_VAL(NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!func)
|
if (!func)
|
||||||
{
|
{
|
||||||
|
|
|
@ -45,10 +45,7 @@ ecore_job_add(Ecore_Cb func,
|
||||||
{
|
{
|
||||||
Ecore_Job *job;
|
Ecore_Job *job;
|
||||||
|
|
||||||
if (EINA_UNLIKELY(!eina_main_loop_is()))
|
EINA_MAIN_LOOP_CHECK_RETURN_VAL(NULL);
|
||||||
{
|
|
||||||
EINA_MAIN_LOOP_CHECK_RETURN_VAL(NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!func)
|
if (!func)
|
||||||
{
|
{
|
||||||
|
|
|
@ -246,10 +246,7 @@ ecore_poller_add(Ecore_Poller_Type type EINA_UNUSED,
|
||||||
poller = calloc(1, sizeof (Ecore_Poller));
|
poller = calloc(1, sizeof (Ecore_Poller));
|
||||||
if (!poller) return NULL;
|
if (!poller) return NULL;
|
||||||
|
|
||||||
if (EINA_UNLIKELY(!eina_main_loop_is()))
|
EINA_MAIN_LOOP_CHECK_RETURN_VAL(NULL);
|
||||||
{
|
|
||||||
EINA_MAIN_LOOP_CHECK_RETURN_VAL(NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!func)
|
if (!func)
|
||||||
{
|
{
|
||||||
|
|
|
@ -5273,8 +5273,7 @@ _ecore_evas_animator_add(void *evo, Ecore_Task_Cb func, const void *data)
|
||||||
Ecore_Evas *ee;
|
Ecore_Evas *ee;
|
||||||
Ecore_Animator *animator;
|
Ecore_Animator *animator;
|
||||||
|
|
||||||
if (EINA_UNLIKELY(!eina_main_loop_is()))
|
EINA_MAIN_LOOP_CHECK_RETURN_VAL(NULL);
|
||||||
EINA_MAIN_LOOP_CHECK_RETURN_VAL(NULL);
|
|
||||||
|
|
||||||
if (!func)
|
if (!func)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue