Sha256: 9c4e777b9ffeb76a83cad6f322d52d1e530a5f99fb57b92d8fbd88bcf535ad73

Contents?: true

Size: 599 Bytes

Versions: 56

Compression:

Stored size: 599 Bytes

Contents

module Concurrent
  module Synchronization
    class Lock < LockableObject
      # TODO use JavaReentrantLock on JRuby

      public :synchronize

      def wait(timeout = nil)
        synchronize { ns_wait(timeout) }
      end

      public :ns_wait

      def wait_until(timeout = nil, &condition)
        synchronize { ns_wait_until(timeout, &condition) }
      end

      public :ns_wait_until

      def signal
        synchronize { ns_signal }
      end

      public :ns_signal

      def broadcast
        synchronize { ns_broadcast }
      end

      public :ns_broadcast
    end
  end
end

Version data entries

56 entries across 53 versions & 16 rubygems

Version Path
logstash-filter-csharp-0.2.1 vendor/bundle/jruby/2.3.0/gems/concurrent-ruby-1.0.0-java/lib/concurrent/synchronization/lock.rb
logstash-filter-csharp-0.2.0 vendor/bundle/jruby/2.3.0/gems/concurrent-ruby-1.0.0-java/lib/concurrent/synchronization/lock.rb
mrcooper-logstash-output-azuresearch-0.2.2 vendor/jruby/2.5.0/gems/concurrent-ruby-1.0.0-java/lib/concurrent/synchronization/lock.rb
logstash-output-icinga-1.1.0 vendor/jruby/1.9/gems/concurrent-ruby-1.0.0-java/lib/concurrent/synchronization/lock.rb
logstash-output-icinga-1.1.0 vendor/jruby/2.3.0/gems/concurrent-ruby-1.0.0-java/lib/concurrent/synchronization/lock.rb
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/concurrent-ruby-1.0.0-java/lib/concurrent/synchronization/lock.rb
logstash-filter-csharp-0.1.0 vendor/bundle/jruby/2.3.0/gems/concurrent-ruby-1.0.0-java/lib/concurrent/synchronization/lock.rb
logstash-filter-htmlentities-0.1.0 vendor/bundle/jruby/1.9/gems/concurrent-ruby-1.0.0-java/lib/concurrent/synchronization/lock.rb
logstash-output-icinga-1.0.0 vendor/jruby/1.9/gems/concurrent-ruby-1.0.0-java/lib/concurrent/synchronization/lock.rb
logstash-input-fifo-0.9.1 vendor/bundle/jruby/1.9/gems/concurrent-ruby-1.0.0-java/lib/concurrent/synchronization/lock.rb
logstash-input-fifo-0.9.0 vendor/bundle/jruby/1.9/gems/concurrent-ruby-1.0.0-java/lib/concurrent/synchronization/lock.rb
autocompl-0.2.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.4/lib/concurrent/synchronization/lock.rb
autocompl-0.2.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.4/lib/concurrent/synchronization/lock.rb
autocompl-0.2.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.4/lib/concurrent/synchronization/lock.rb
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.4/lib/concurrent/synchronization/lock.rb
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.4/lib/concurrent/synchronization/lock.rb
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.4/lib/concurrent/synchronization/lock.rb
autocompl-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.4/lib/concurrent/synchronization/lock.rb
logstash-input-salesforce-3.0.0 vendor/jruby/1.9/gems/concurrent-ruby-1.0.0-java/lib/concurrent/synchronization/lock.rb
abaci-0.3.0 vendor/bundle/gems/concurrent-ruby-1.0.2/lib/concurrent/synchronization/lock.rb