Current File : //opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/concurrent/lock.rb
require_relative '../../puppet/concurrent/synchronized'
module Puppet
module Concurrent
# A simple lock that at the moment only does any locking on jruby
class Lock
include Puppet::Concurrent::Synchronized
def synchronize
yield
end
end
end
end