summaryrefslogtreecommitdiff
path: root/src/lib/ecore
diff options
context:
space:
mode:
authorYeongjong Lee <cleanlyj@naver.com>2018-10-26 19:25:09 +0900
committerHermet Park <hermetpark@gmail.com>2018-10-26 19:25:09 +0900
commit9de082eb83e01ab69fe69edd18d7c988533c7b08 (patch)
treef93d9054946bb1fbd9634849e6e080dd236f1c41 /src/lib/ecore
parentf802c8f482cc3f7f1d2f94f7c9377feffbe0ed3f (diff)
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
Diffstat (limited to 'src/lib/ecore')
-rw-r--r--src/lib/ecore/ecore_anim.c5
-rw-r--r--src/lib/ecore/ecore_job.c5
-rw-r--r--src/lib/ecore/ecore_poller.c5
3 files changed, 3 insertions, 12 deletions
diff --git a/src/lib/ecore/ecore_anim.c b/src/lib/ecore/ecore_anim.c
index 9fbcf67b82..b4810ae441 100644
--- a/src/lib/ecore/ecore_anim.c
+++ b/src/lib/ecore/ecore_anim.c
@@ -513,10 +513,7 @@ _ecore_animator_add(Ecore_Task_Cb func,
513{ 513{
514 Ecore_Animator *animator; 514 Ecore_Animator *animator;
515 515
516 if (EINA_UNLIKELY(!eina_main_loop_is())) 516 EINA_MAIN_LOOP_CHECK_RETURN_VAL(NULL);
517 {
518 EINA_MAIN_LOOP_CHECK_RETURN_VAL(NULL);
519 }
520 517
521 if (!func) 518 if (!func)
522 { 519 {
diff --git a/src/lib/ecore/ecore_job.c b/src/lib/ecore/ecore_job.c
index 41ddbb2148..29d5412a94 100644
--- a/src/lib/ecore/ecore_job.c
+++ b/src/lib/ecore/ecore_job.c
@@ -45,10 +45,7 @@ ecore_job_add(Ecore_Cb func,
45{ 45{
46 Ecore_Job *job; 46 Ecore_Job *job;
47 47
48 if (EINA_UNLIKELY(!eina_main_loop_is())) 48 EINA_MAIN_LOOP_CHECK_RETURN_VAL(NULL);
49 {
50 EINA_MAIN_LOOP_CHECK_RETURN_VAL(NULL);
51 }
52 49
53 if (!func) 50 if (!func)
54 { 51 {
diff --git a/src/lib/ecore/ecore_poller.c b/src/lib/ecore/ecore_poller.c
index 3993e6e8dd..dfc9aa90b0 100644
--- a/src/lib/ecore/ecore_poller.c
+++ b/src/lib/ecore/ecore_poller.c
@@ -246,10 +246,7 @@ ecore_poller_add(Ecore_Poller_Type type EINA_UNUSED,
246 poller = calloc(1, sizeof (Ecore_Poller)); 246 poller = calloc(1, sizeof (Ecore_Poller));
247 if (!poller) return NULL; 247 if (!poller) return NULL;
248 248
249 if (EINA_UNLIKELY(!eina_main_loop_is())) 249 EINA_MAIN_LOOP_CHECK_RETURN_VAL(NULL);
250 {
251 EINA_MAIN_LOOP_CHECK_RETURN_VAL(NULL);
252 }
253 250
254 if (!func) 251 if (!func)
255 { 252 {