Object
# File lib/fluent/process.rb, line 366 def initialize @finished = false @mutex = Mutex.new @cond = ConditionVariable.new end
# File lib/fluent/process.rb, line 388 def finished? @finished end
# File lib/fluent/process.rb, line 380 def stop return if @finished @finished = true @mutex.synchronize do @cond.broadcast end end
# File lib/fluent/process.rb, line 372 def wait @mutex.synchronize do until @finished @cond.wait(@mutex, 1.0) end end end
[Validate]
Generated with the Darkfish Rdoc Generator 2.