logstash-core/lib/logstash/agent.rb
# Safely perform an operation on the pipelines hash
# Using the correct synchronization
Safely perform an operation on the pipelines hash
Using the correct synchronization
Safely perform an operation on the pipelines hash Using the correct synchronization
def with_pipelines
    begin
      @pipelines_lock.lock
      yield @pipelines
    ensure
      @pipelines_lock.unlock
    end
  end
def with_pipelines begin @pipelines_lock . lock yield @pipelines ensure @pipelines_lock . unlock end end
Safely perform an operation on the pipelines hash
Using the correct synchronization
Safely perform an operation on the pipelines hash Using the correct synchronization