lib/ext_monitor.rb
def wait(timeout = nil)
      @monitor.__send__(:mon_check_owner)
      count = @monitor.__send__(:mon_exit_for_cond)
      begin
        @cond.wait(@monitor.instance_variable_get(:@mon_data).mutex_for_cond, timeout)
        return true
      ensure
        @monitor.__send__(:mon_enter_for_cond, count)
      end
    end
#
# Releases the lock held in the associated monitor and waits; reacquires the lock on wakeup.
#
# If +timeout+ is given, this method returns after +timeout+ seconds passed,
# even if no other thread doesn't signal.
#
Releases the lock held in the associated monitor and waits; reacquires the lock on wakeup.
If +timeout+ is given, this method returns after +timeout+ seconds passed,
even if no other thread doesn't signal.
Releases the lock held in the associated monitor and waits ; reacquires the lock on wakeup . If + timeout + is given this method returns after + timeout + seconds passed even if no other thread doesn ' t signal .
def wait(timeout = nil)
      @monitor.__send__(:mon_check_owner)
      count = @monitor.__send__(:mon_exit_for_cond)
      begin
        @cond.wait(@monitor.instance_variable_get(:@mon_data).mutex_for_cond, timeout)
        return true
      ensure
        @monitor.__send__(:mon_enter_for_cond, count)
      end
    end
def wait ( timeout = nil ) @monitor . __send__ ( :mon_check_owner ) count = @monitor . __send__ ( :mon_exit_for_cond ) begin @cond . wait ( @monitor . instance_variable_get ( :@mon_data ) . mutex_for_cond , timeout ) return true ensure @monitor . __send__ ( :mon_enter_for_cond , count ) end end
Releases the lock held in the associated monitor and waits; reacquires the lock on wakeup.
Releases the lock held in the associated monitor and waits ; reacquires the lock on wakeup .
timeout