Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / tests / MT_Timeout / Server_Task.cpp
blob0e0b4169136358efeba5fb1eb4fee6bf4091381e
2 #include "Server_Task.h"
4 Server_Task::Server_Task (ACE_Thread_Manager *thr_mgr,
5 CORBA::ORB_ptr orb,
6 const ACE_Time_Value &running_time)
7 : ACE_Task_Base (thr_mgr)
8 , orb_ (CORBA::ORB::_duplicate (orb))
9 , running_time_ (running_time)
13 int
14 Server_Task::svc ()
16 try
18 this->orb_->run (this->running_time_);
20 catch (const CORBA::Exception&)
22 return -1;
24 return 0;