vendor/bundle/ruby/1.8/gems/emissary-1.3.13/lib/emissary/agent/mysql.rb
def with_lock
      begin
        lock! && yield
      ensure
        unlock!
      end
    end
# Acquire a lock and, with that lock, run a block/closure.
Acquire a lock and, with that lock, run a block/closure.
Acquire a lock and with that lock run a block / closure .
def with_lock
      begin
        lock! && yield
      ensure
        unlock!
      end
    end
def with_lock begin lock! && yield ensure unlock! end end
Acquire a lock and, with that lock, run a block/closure.
Acquire a lock and with that lock run a block / closure .