summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore/ecore_poll.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-03-29 08:52:25 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-03-29 08:52:25 +0000
commitedc6198ececb0c11850cba5f18a20df8e874282b (patch)
tree2a98e5e789c39ec5fac5bcff23ab96e71bacc3ef /legacy/ecore/src/lib/ecore/ecore_poll.c
parent12c38ee1c9c519fa5f4a0cb626902b49af561858 (diff)
main loop checks for all of ecore -> back. (removed by cedric last year)
SVN revision: 69727
Diffstat (limited to 'legacy/ecore/src/lib/ecore/ecore_poll.c')
-rw-r--r--legacy/ecore/src/lib/ecore/ecore_poll.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/legacy/ecore/src/lib/ecore/ecore_poll.c b/legacy/ecore/src/lib/ecore/ecore_poll.c
index bf4da6af60..149b3d4ca7 100644
--- a/legacy/ecore/src/lib/ecore/ecore_poll.c
+++ b/legacy/ecore/src/lib/ecore/ecore_poll.c
@@ -193,6 +193,7 @@ EAPI void
193ecore_poller_poll_interval_set(Ecore_Poller_Type type __UNUSED__, 193ecore_poller_poll_interval_set(Ecore_Poller_Type type __UNUSED__,
194 double poll_time) 194 double poll_time)
195{ 195{
196 EINA_MAIN_LOOP_CHECK_RETURN;
196 poll_interval = poll_time; 197 poll_interval = poll_time;
197 _ecore_poller_next_tick_eval(); 198 _ecore_poller_next_tick_eval();
198} 199}
@@ -200,6 +201,7 @@ ecore_poller_poll_interval_set(Ecore_Poller_Type type __UNUSED__,
200EAPI double 201EAPI double
201ecore_poller_poll_interval_get(Ecore_Poller_Type type __UNUSED__) 202ecore_poller_poll_interval_get(Ecore_Poller_Type type __UNUSED__)
202{ 203{
204 EINA_MAIN_LOOP_CHECK_RETURN_VAL(0.0);
203 return poll_interval; 205 return poll_interval;
204} 206}
205 207
@@ -212,6 +214,7 @@ ecore_poller_add(Ecore_Poller_Type type __UNUSED__,
212 Ecore_Poller *poller; 214 Ecore_Poller *poller;
213 int ibit; 215 int ibit;
214 216
217 EINA_MAIN_LOOP_CHECK_RETURN_VAL(NULL);
215 if (!func) return NULL; 218 if (!func) return NULL;
216 if (interval < 1) interval = 1; 219 if (interval < 1) interval = 1;
217 220
@@ -246,6 +249,7 @@ ecore_poller_poller_interval_set(Ecore_Poller *poller,
246{ 249{
247 int ibit; 250 int ibit;
248 251
252 EINA_MAIN_LOOP_CHECK_RETURN_VAL(EINA_FALSE);
249 if (!ECORE_MAGIC_CHECK(poller, ECORE_MAGIC_POLLER)) 253 if (!ECORE_MAGIC_CHECK(poller, ECORE_MAGIC_POLLER))
250 { 254 {
251 ECORE_MAGIC_FAIL(poller, ECORE_MAGIC_POLLER, 255 ECORE_MAGIC_FAIL(poller, ECORE_MAGIC_POLLER,
@@ -281,6 +285,7 @@ ecore_poller_poller_interval_get(Ecore_Poller *poller)
281{ 285{
282 int ibit, interval = 1; 286 int ibit, interval = 1;
283 287
288 EINA_MAIN_LOOP_CHECK_RETURN_VAL(0);
284 if (!ECORE_MAGIC_CHECK(poller, ECORE_MAGIC_POLLER)) 289 if (!ECORE_MAGIC_CHECK(poller, ECORE_MAGIC_POLLER))
285 { 290 {
286 ECORE_MAGIC_FAIL(poller, ECORE_MAGIC_POLLER, 291 ECORE_MAGIC_FAIL(poller, ECORE_MAGIC_POLLER,
@@ -302,6 +307,7 @@ ecore_poller_del(Ecore_Poller *poller)
302{ 307{
303 void *data; 308 void *data;
304 309
310 EINA_MAIN_LOOP_CHECK_RETURN_VAL(NULL);
305 if (!ECORE_MAGIC_CHECK(poller, ECORE_MAGIC_POLLER)) 311 if (!ECORE_MAGIC_CHECK(poller, ECORE_MAGIC_POLLER))
306 { 312 {
307 ECORE_MAGIC_FAIL(poller, ECORE_MAGIC_POLLER, 313 ECORE_MAGIC_FAIL(poller, ECORE_MAGIC_POLLER,