summaryrefslogtreecommitdiff
path: root/perf/src/TAO/WorkerThread.cpp
blob: 18689255bd4e49ada0c33a3d3c83ca1be4047899 (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-2011 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;
}