Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Muxing / Server_Task.cpp
blobc0091912959aaecc448dcbe031b1e567918d25ce
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 (void)
14 ACE_DEBUG ((LM_DEBUG, "(%P|%t) Starting server task\n"));
15 try
17 #if defined (ACE_OPENVMS)
18 // OpenVMS typically takes a lot longer...
19 ACE_Time_Value tv (360, 0);
20 #else
21 // run the test for at most 120 seconds...
22 ACE_Time_Value tv (120, 0);
23 #endif
24 this->orb_->run (tv);
26 catch (const CORBA::Exception&)
28 return -1;
30 ACE_DEBUG ((LM_DEBUG, "(%P|%t) Server task finished\n"));
31 return 0;