blob: 8564f9d98eff23e82e4a832733677471543de26b (
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
36
37
38
39
|
//
// $Id$
//
#include "Client_Task.h"
ACE_RCSID(Muxing, Client_Task, "Client_Task.cpp,v 1.1 2001/03/10 23:37:42 coryan Exp")
Client_Task::Client_Task (CORBA::ORB_ptr orb,
ACE_Thread_Manager *thr_mgr)
: ACE_Task_Base (thr_mgr)
, orb_ (CORBA::ORB::_duplicate (orb))
{
}
int
Client_Task::svc (void)
{
ACE_DEBUG ((LM_DEBUG, "(%P|%t) Starting client task\n"));
// Wait for 2 minutes...
ACE_Time_Value tv (60,0);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
this->orb_->run (tv ACE_ENV_ARG_PARAMETER);
}
ACE_CATCHANY
{
ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
"(%P|%t) Client_Task::svc exception!!!\n");
}
ACE_ENDTRY;
ACE_DEBUG ((LM_DEBUG, "(%P|%t) Client task finished\n"));
return 0;
}
|