new(lock, other_cond, preferred_thread)
public
semantics of condition variables guarantee that broadcast,
broadcast_on_biased, signal
and wait
methods are only called while holding a lock
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool/queue.rb, line 142
def initialize(lock, other_cond, preferred_thread)
@real_cond = lock.new_cond
@other_cond = other_cond
@preferred_thread = preferred_thread
@num_waiting_on_real_cond = 0
end