summaryrefslogtreecommitdiff
path: root/perf/src/TAO/WorkerThread.cpp
blob: 251dfaf2b0bfdd7fbd1dc775992f7faf6e5d846d (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-2010 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;
}