# File src/ruby_supportlib/phusion_passenger/vendor/union_station_hooks_core/lib/union_station_hooks_core/lock.rb, line 41
    def synchronize
      lock if !@locked
      begin
        yield(self)
      ensure
        unlock if @locked
      end
    end