123456789_123456789_123456789_123456789_123456789_

Class: Concurrent::Synchronization::Lock

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: Concurrent::Synchronization::LockableObject
Defined in: lib/concurrent-ruby/concurrent/synchronization/lock.rb

Overview

TODO (pitr-ch 04-Dec-2016): should be in edge

Instance Method Summary

Instance Method Details

#broadcast

[ GitHub ]

  
# File 'lib/concurrent-ruby/concurrent/synchronization/lock.rb', line 31

def broadcast
  synchronize { ns_broadcast }
end

#signal

[ GitHub ]

  
# File 'lib/concurrent-ruby/concurrent/synchronization/lock.rb', line 25

def signal
  synchronize { ns_signal }
end

#wait(timeout = nil)

[ GitHub ]

  
# File 'lib/concurrent-ruby/concurrent/synchronization/lock.rb', line 13

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

#wait_until(timeout = nil, &condition)

[ GitHub ]

  
# File 'lib/concurrent-ruby/concurrent/synchronization/lock.rb', line 19

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