Method: Lens::Worker#start
- Defined in:
- lib/lens/worker.rb
#start ⇒ Object
59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/lens/worker.rb', line 59 def start mutex.synchronize do return false if @shutdown return true if thread && thread.alive? @pid = Process.pid @thread = Thread.new { run } end true end |