= private = protected
broadcast()
Wakes up all threads waiting for this lock.
# File lib/thread.rb, line 96 def broadcast # TODO: incomplete waiters0 = nil @waiters_mutex.synchronize do waiters0 = @waiters.dup @waiters.clear end for t in waiters0 begin t.run rescue ThreadError end end self end