2 #include "ace/OS_NS_unistd.h"
4 Echo::Echo(CORBA::ORB_ptr orb
,
6 : orb_(CORBA::ORB::_duplicate(orb
))
7 , abort_counter_ (abort_counter
),
13 Echo::echo_payload (Test::Payload
&)
15 ACE_MT (ACE_GUARD (TAO_SYNCH_MUTEX
,
19 this->abort_counter_
--;
21 if (this->abort_counter_
== 0)
23 ACE_DEBUG ((LM_DEBUG
, "(%P|%t) Echo::echo_payload, sleeping\n"));
25 // Sleep for 10 seconds, forcing a flow control of some kind.
28 // Run the ORB for a while, to generate a short-lived release of
30 /*ACE_Time_Value tv (0, 10000);
31 this->orb_->run (tv);*/
34 "(%P|%t) Echo::echo_payload, aborting\n"));