# File lib/fluent/process.rb, line 389deffinished?@finishedend
stop()click to toggle source
# File lib/fluent/process.rb, line 378defstopreturnif@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 370defwait@mutex.synchronizedountil@finished@cond.wait(@mutex, 1.0)
endendend