Parent

Class/Module Index [+]

Quicksearch

Fluent::DetachProcessImpl::FinishWait

Public Class Methods

new() click to toggle source
# File lib/fluent/process.rb, line 366
def initialize
  @finished = false
  @mutex = Mutex.new
  @cond = ConditionVariable.new
end

Public Instance Methods

finished?() click to toggle source
# File lib/fluent/process.rb, line 388
def finished?
  @finished
end
stop() click to toggle source
# File lib/fluent/process.rb, line 380
def stop
  return if @finished
  @finished = true
  @mutex.synchronize do
    @cond.broadcast
  end
end
wait() click to toggle source
# 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.