Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / MT_Timeout / Server_Task.cpp
blob0b0503d31c507482016620832b494c86a70687f4
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 (void)
16 try
18 this->orb_->run (this->running_time_);
20 catch (const CORBA::Exception&)
22 return -1;
24 return 0;