# File lib/listen/adapters/windows.rb, line 25 def start(blocking = true) @mutex.synchronize do return if @stop == false super end @worker_thread = Thread.new { @worker.run! } # Wait for the worker to start. This is needed to avoid a deadlock # when stopping immediately after starting. sleep 0.1 @poll_thread = Thread.new { poll_changed_dirs } if @report_changes @worker_thread.join if blocking end