Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / tests / Bug_1270_Regression / Echo.cpp
blob9848a2ed94c589160556e3d9d154d178bf2df74f
1 /**
2 * @file Echo.cpp
4 * @author Carlos O'Ryan <coryan@atdesk.com>
5 */
6 #include "Echo.h"
7 #include "ace/OS_NS_unistd.h"
9 Echo::Echo(CORBA::ORB_ptr orb,
10 int abort_counter)
11 : orb_(CORBA::ORB::_duplicate(orb))
12 , abort_counter_(abort_counter)
16 void
17 Echo::echo_payload(Test::Payload const &)
19 this->abort_counter_--;
21 if (this->abort_counter_ == 0)
23 ACE_DEBUG ((LM_DEBUG, "(%P|%t) Echo::echo_payload, sleeping\n"));
24 // Sleep for 15 seconds, forcing a flow control of some kind.
25 ACE_OS::sleep(15);
27 ACE_DEBUG ((LM_DEBUG, "(%P|%t) Echo::echo_payload, aborting\n"));
28 // Kill the app
29 ACE::terminate_process (ACE_OS::getpid ());