summaryrefslogtreecommitdiff
path: root/src/lib/eio
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-04-02 08:50:48 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-04-02 08:50:48 -0400
commit43a522b8767dce5ceabc40cd6868f7fba65f0abc (patch)
treed33a284b6d694f354d73f845eb20978c52001d39 /src/lib/eio
parentc29dae34a0b8fc13a188a5a57a645368325240d4 (diff)
eio: ensure that the monitor starts when it is called to
Summary: we need to to this here, otherwise we effectfily start the monitor later, which means, we can miss a change in the filesystem. However, this makes things a lot slower. Reviewers: cedric Reviewed By: cedric Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8526
Diffstat (limited to 'src/lib/eio')
-rw-r--r--src/lib/eio/eio_monitor_poll.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/eio/eio_monitor_poll.c b/src/lib/eio/eio_monitor_poll.c
index 2788aee84e..55cdff6fbf 100644
--- a/src/lib/eio/eio_monitor_poll.c
+++ b/src/lib/eio/eio_monitor_poll.c
@@ -196,7 +196,7 @@ _eio_monitor_fallback_heavy_cb(void *data, Ecore_Thread *thread)
196 } 196 }
197 197
198 cmp->version = backend->version; 198 cmp->version = backend->version;
199 if (ecore_thread_check(thread)) break; 199 if (thread && ecore_thread_check(thread)) break;
200 } 200 }
201 201
202 if (it) eina_iterator_free(it); 202 if (it) eina_iterator_free(it);
@@ -346,6 +346,9 @@ eio_monitor_fallback_add(Eio_Monitor *monitor)
346 backend->parent = monitor; 346 backend->parent = monitor;
347 monitor->backend = backend; 347 monitor->backend = backend;
348 monitor->fallback = EINA_TRUE; 348 monitor->fallback = EINA_TRUE;
349
350 //ensure this is initialized here
351 _eio_monitor_fallback_heavy_cb(backend, NULL);
349 backend->work = ecore_thread_run(_eio_monitor_fallback_heavy_cb, 352 backend->work = ecore_thread_run(_eio_monitor_fallback_heavy_cb,
350 _eio_monitor_fallback_end_cb, 353 _eio_monitor_fallback_end_cb,
351 _eio_monitor_fallback_cancel_cb, 354 _eio_monitor_fallback_cancel_cb,