Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / tests / Bug_1551_Regression / Server_Task.cpp
blobb98d1fe56ca9a9527e1146e1325c119c5e111627
1 #include "Server_Task.h"
3 Server_Task::Server_Task (CORBA::ORB_ptr orb,
4 ACE_Thread_Manager *thr_mgr)
5 : ACE_Task_Base (thr_mgr)
6 , orb_ (CORBA::ORB::_duplicate (orb))
10 int
11 Server_Task::svc ()
13 // ACE_DEBUG ((LM_DEBUG, "(%P|%t) Starting server task\n"));
14 try
16 this->orb_->run ();
18 catch (const CORBA::Exception&)
20 return -1;
22 // ACE_DEBUG ((LM_DEBUG, "(%P|%t) Server task finished\n"));
23 return 0;