Sha256: bd5835ec2ac0276029f735414b93ef230a041c2eedce6c2712cbf18b376c3aac

Contents?: true

Size: 403 Bytes

Versions: 20

Compression:

Stored size: 403 Bytes

Contents

# frozen_string_literal: true
module Puppet
module Concurrent

# Including Puppet::Concurrent::Synchronized into a class when running on JRuby
# causes all of its instance methods to be synchronized on the instance itself.
# When running on MRI it has no effect.
if RUBY_PLATFORM == 'java'
  require 'jruby/synchronized'
  Synchronized = JRuby::Synchronized
else
  module Synchronized; end
end

end
end

Version data entries

20 entries across 20 versions & 1 rubygems

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