summaryrefslogtreecommitdiff
path: root/perf/src/CosEvent/WorkerThread.cpp
blob: 412db8994cb947d3f902fa6f43d69ec1d677839a (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;
}