blob: d0404212e1ae53d287070b1780a5002db613bb84 (
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
|
// **********************************************************************
//
// Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
#include <WorkerThread.h>
WorkerThread::WorkerThread(CORBA::ORB_ptr orb):
_orb(CORBA::ORB::_duplicate(orb))
{
}
int
WorkerThread::svc()
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
_orb->run(ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY {} ACE_ENDTRY;
return 0;
}
|