blob: 1338704fc0d1460612df96840be7bb33f5b06b04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
//
// $Id$
//
#include "Server_Task.h"
ACE_RCSID(Muxing, Server_Task, "$Id$")
Server_Task::Server_Task (CORBA::ORB_ptr orb,
ACE_Thread_Manager *thr_mgr)
: ACE_Task_Base (thr_mgr)
, orb_ (CORBA::ORB::_duplicate (orb))
{
}
int
Server_Task::svc (void)
{
ACE_DEBUG ((LM_DEBUG, "(%P|%t) Starting server task\n"));
TAO_ENV_DECLARE_NEW_ENV;
ACE_TRY
{
// run the test for at most 60 seconds...
ACE_Time_Value tv (60, 0);
this->orb_->run (tv TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
{
return -1;
}
ACE_ENDTRY;
ACE_DEBUG ((LM_DEBUG, "(%P|%t) Server task finished\n"));
return 0;
}
|