efl_io_model: start early on monitoring
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Tue, 2 Apr 2019 12:50:34 +0000 (08:50 -0400)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 8 Apr 2019 01:45:22 +0000 (10:45 +0900)
commit4cea0c3cbfb6d424b9f4dc27aef89e07b1b57050
tree1dc59bbca279f69dc336ce7fdcf50a8c09b9cf6c
parent5be992bef9b0c7023220bb2413d02b12fdc72233
efl_io_model: start early on monitoring

Summary:
Little introduction into what eio did before this commit:
Efl.Io.Model creation:
  - direct ls of a directory in a thread (A)
  - take all the contents of a directory and feed it slowly back into
the mainloop
  - when all events have been feeded back to the mainloop and have been
processed: start monitoring (B)

However, any file created between (A) and (B) will not be in the model,
since not the listing nor the monitoring did caputure it. Hence we need
to start monitoring before we actaully start listing. In the callbacks
we then check if we already published something.

ref T7311

Reviewers: zmike, cedric

Reviewed By: cedric

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T7311

Differential Revision: https://phab.enlightenment.org/D8525
src/lib/eio/efl_io_model.c