Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Bug_1482_Regression / Server_Task.cpp
blobea1882c01a24145632f63a10442e8a9794efe0c5
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;