Ejemplo n.º 1
0
 Sender_exec_i::Sender_exec_i (void)
   : iterations_ (0)
     , keys_ (0)
     , to_handler_ (0)
 {
    ACE_NEW_THROW_EX (this->to_handler_,
                      Timeout_Handler (*this),
                      ::CORBA::INTERNAL ());
 }
Ejemplo n.º 2
0
 void
 Sender_exec_i::ccm_activate (void)
 {
    ACE_NEW_THROW_EX (this->to_handler_,
                      Timeout_Handler (*this),
                      ::CORBA::INTERNAL ());
    if (this->reactor ()->schedule_timer (
                this->to_handler_,
                0,
                ACE_Time_Value (1, 0)) == -1)
      {
        ACE_ERROR ((LM_ERROR, ACE_TEXT ("Sender_exec_i::start : ")
                              ACE_TEXT ("Error scheduling timer")));
      }
 }