Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Bug_2683_Regression / test_i.cpp
blob879bf15ecd3070bc387841a7c9f9111d7ee00677
1 #include "test_i.h"
2 #include "ace/OS_NS_unistd.h"
4 test_i::test_i (ORB_Killer *k)
5 : killer_ (k)
9 void
10 test_i::ping (void)
15 void
16 test_i::shutdown (void)
18 ACE_DEBUG ((LM_DEBUG,"(%P|%t) requesting shutdown\n"));
19 this->killer_->activate ();
23 ORB_Killer::ORB_Killer (CORBA::ORB_ptr orb)
24 : orb_ (CORBA::ORB::_duplicate (orb))
28 int
29 ORB_Killer::svc ()
31 ACE_OS::sleep (1);
32 ACE_DEBUG ((LM_DEBUG,"(%P|%t) doing shutdown\n"));
33 orb_->shutdown(1);
34 ACE_DEBUG ((LM_DEBUG,"(%P|%t) shutdown complete\n"));
35 return 0;