# File lib/fluent/process.rb, line 388deffinished?@finishedend
stop()click to toggle source
# File lib/fluent/process.rb, line 377defstopreturnif@finished@finished = true# Creating new thread due to mutex can't lock in main thread during trap contextThread.new {
@mutex.synchronizedo@cond.broadcastend
}.runend
wait()click to toggle source
# File lib/fluent/process.rb, line 369defwait@mutex.synchronizedountil@finished@cond.wait(@mutex, 1.0)
endendend