Sha256: 5c3fa6e5aedda538bbd4ab86334418f4b62dfd3dd719cc3afb1d3d3dea488d70

Contents?: true

Size: 288 Bytes

Versions: 20

Compression:

Stored size: 288 Bytes

Contents

# frozen_string_literal: true
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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
puppet-8.3.0 lib/puppet/concurrent/lock.rb
puppet-8.3.0-x86-mingw32 lib/puppet/concurrent/lock.rb
puppet-8.3.0-x64-mingw32 lib/puppet/concurrent/lock.rb
puppet-8.3.0-universal-darwin lib/puppet/concurrent/lock.rb
puppet-8.3.1 lib/puppet/concurrent/lock.rb
puppet-8.3.1-x86-mingw32 lib/puppet/concurrent/lock.rb
puppet-8.3.1-x64-mingw32 lib/puppet/concurrent/lock.rb
puppet-8.3.1-universal-darwin lib/puppet/concurrent/lock.rb
puppet-8.2.0 lib/puppet/concurrent/lock.rb
puppet-8.2.0-x86-mingw32 lib/puppet/concurrent/lock.rb
puppet-8.2.0-x64-mingw32 lib/puppet/concurrent/lock.rb
puppet-8.2.0-universal-darwin lib/puppet/concurrent/lock.rb
puppet-8.1.0 lib/puppet/concurrent/lock.rb
puppet-8.1.0-x86-mingw32 lib/puppet/concurrent/lock.rb
puppet-8.1.0-x64-mingw32 lib/puppet/concurrent/lock.rb
puppet-8.1.0-universal-darwin lib/puppet/concurrent/lock.rb
puppet-8.0.1 lib/puppet/concurrent/lock.rb
puppet-8.0.1-x86-mingw32 lib/puppet/concurrent/lock.rb
puppet-8.0.1-x64-mingw32 lib/puppet/concurrent/lock.rb
puppet-8.0.1-universal-darwin lib/puppet/concurrent/lock.rb