Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tests / Leader_Followers / test_i.cpp
blobad20d726c35439d5c05e41b938b10b99499d0e15
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 ()
12 this->orb_->shutdown (false);
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;