Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / tests / Client_Leaks / Server_Task.cpp
blob99ac45c83b3adb9e76f91bc41c605002942766e2
2 #include "Server_Task.h"
4 Server_Task::Server_Task (CORBA::ORB_ptr orb,
5 ACE_Thread_Manager *thr_mgr)
6 : ACE_Task_Base (thr_mgr)
7 , orb_ (CORBA::ORB::_duplicate (orb))
11 int
12 Server_Task::svc ()
14 ACE_DEBUG ((LM_DEBUG, "(%P|%t) Starting server task\n"));
15 try
17 // run the test for at most 120 seconds...
18 // ACE_Time_Value tv (120, 0);
19 this->orb_->run (/* tv, */);
21 catch (const CORBA::Exception&)
23 return -1;
25 ACE_DEBUG ((LM_DEBUG, "(%P|%t) Server task finished\n"));
26 return 0;