summaryrefslogtreecommitdiff
path: root/TAO/performance-tests/CSD_Strategy/TestInf/OrbTask.h
blob: c81e42127930c9108d3ad220fcf3d9e02f6c2bd3 (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
// This may look like C, but it's really -*- C++ -*-

//=============================================================================
/**
 *  @file    OrbTask.h
 *
 *  @author  Tim Bradley <bradley_t@ociweb.com>
 */
//=============================================================================

#ifndef ORB_TASK_H
#define ORB_TASK_H

#include "CSD_PT_TestInf_Export.h"
#include "ace/Task.h"
#include "tao/ORB.h"


class CSD_PT_TestInf_Export OrbTask : public ACE_Task_Base
{
  public:

    OrbTask(CORBA::ORB_ptr orb, unsigned num_threads = 1);
    virtual ~OrbTask();

    virtual int open(void*);
    virtual int svc();
    virtual int close(u_long);


  private:

    CORBA::ORB_var orb_;
    unsigned       num_threads_;
};

#endif