class INotify::Notifier

def stop

exit out as soon as we finish handling the events.
That is, if we're in a \{#run} loop,
Stop watching for filesystem events.
def stop
  @stop = true
  @pipe.last.write "."
  unless Thread.current[:INOTIFY_RUN_THREAD]
    @running.synchronize do
      # no-op: we just needed to wait until the lock was available
    end
  end
end