Beispiel #1
0
 def __init__(self, timeout=DEFAULT_OBSERVER_TIMEOUT):
     BaseThread.__init__(self)
     self._event_queue = EventQueue()
     self._timeout = timeout
Beispiel #2
0
 def __init__(self, event_queue, watch, timeout=DEFAULT_EMITTER_TIMEOUT):
     BaseThread.__init__(self)
     self._event_queue = event_queue
     self._watch = watch
     self._timeout = timeout
Beispiel #3
0
 def __init__(self, path, recursive=False):
     BaseThread.__init__(self)
     self._queue = DelayedQueue(self.delay)
     self._inotify = Inotify(path, recursive)
     self.start()