# 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