cc-4269: added coalesce_events option like in mm1
This commit is contained in:
parent
3f0df6d101
commit
d5ccf183a0
|
@ -219,14 +219,13 @@ class Manager(Loggable):
|
||||||
self.logger.info("'%s' is not being watched, hence cannot be \
|
self.logger.info("'%s' is not being watched, hence cannot be \
|
||||||
removed" % watch_dir)
|
removed" % watch_dir)
|
||||||
|
|
||||||
def pyinotify(self):
|
|
||||||
return pyinotify.Notifier(self.wm)
|
|
||||||
|
|
||||||
def loop(self):
|
def loop(self):
|
||||||
"""
|
"""
|
||||||
block until we receive pyinotify events
|
block until we receive pyinotify events
|
||||||
"""
|
"""
|
||||||
pyinotify.Notifier(self.wm).loop()
|
notifier = pyinotify.Notifier(self.wm)
|
||||||
|
notifier.coalesce_events()
|
||||||
|
notifier.loop()
|
||||||
# Experiments with running notifier in different modes
|
# Experiments with running notifier in different modes
|
||||||
# There are 3 options: normal, async, threaded.
|
# There are 3 options: normal, async, threaded.
|
||||||
#import asyncore
|
#import asyncore
|
||||||
|
|
Loading…
Reference in New Issue