summaryrefslogtreecommitdiff
path: root/trunk/TAO/tests/Two_Objects/worker.h
blob: 1e2a5a3b54ee26079177006e196ddcdb5be27975 (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
// -*- C++ -*-
//
// $Id$


#ifndef TAO_TWO_OBJECTS_WORKER_H
#define TAO_TWO_OBJECTS_WORKER_H

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

//   Use the ACE_Task_Base class to run server threads
class Worker : public ACE_Task_Base
{
public:

  // Ctor
  Worker (CORBA::ORB_ptr orb, int time);

  // The thread entry point.
  virtual int svc (void);


private:
  // The orb
  CORBA::ORB_var orb_;

  int orb_timeout_;
};

#endif  /* TAO_TWO_OBJECTS_WORKER_H */