method
wait
wait(timeout = nil)
public
Hide source
# File lib/monitor.rb, line 90 def wait(timeout = nil) if timeout raise NotImplementedError, "timeout is not implemented yet" end @monitor.__send__(:mon_check_owner) count = @monitor.__send__(:mon_exit_for_cond) begin @cond.wait(@monitor.instance_variable_get("@mon_mutex")) return true ensure @monitor.__send__(:mon_enter_for_cond, count) end end