Example #1
0
        void
        request_timeout ()
        {
          retry_timer.cancel();
          death_timer.cancel();

          // just tear everything down at this point.
          if( socket.is_open() )
            socket.close();

          if( requestCount.dec() == 0 )
            ioservice.stop();
        }
Example #2
0
    bool pool_timer::stop_locked()
    {
        if (!is_terminated_ && is_started_ && !is_stopped_) {
            is_started_ = false;
            is_stopped_ = true;

            HPX_ASSERT(timer_ != nullptr);
            timer_->cancel();
            return true;
        }
        return false;
    }
Example #3
0
        void
        resend_timeout ()
        {
          retry_timer.cancel();

          // No response, so resend the message again
          if( socket.is_open() )
            send_packet();
          else
            // if the socket gets closed, then, we've probably received an answer!
            request_timeout();
        }