Merge pull request #1815 from sonndinh/get_signal_info
[ACE_TAO.git] / TAO / tests / Leader_Followers / test_i.cpp
blob99ec0e52d943eae923df05d159e165e05009e321
1 #include "test_i.h"
2 #include "ace/OS_NS_unistd.h"
4 test_i::test_i (CORBA::ORB_ptr orb)
5 : orb_ (CORBA::ORB::_duplicate (orb))
9 void
10 test_i::shutdown (void)
12 this->orb_->shutdown (0);
15 CORBA::ULong
16 test_i::method (CORBA::ULong work)
18 ACE_DEBUG ((LM_DEBUG,
19 "Server: Working for %d milli seconds @ %T\n",
20 work));
22 // Time required to process this request. <work> is time units in
23 // milli seconds.
24 ACE_Time_Value work_time (0,
25 work * 1000);
27 ACE_OS::sleep (work_time);
29 return work;