diff options
Diffstat (limited to 'TAO/tests/Two_Objects/worker.h')
-rw-r--r-- | TAO/tests/Two_Objects/worker.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/TAO/tests/Two_Objects/worker.h b/TAO/tests/Two_Objects/worker.h new file mode 100644 index 00000000000..1e2a5a3b54e --- /dev/null +++ b/TAO/tests/Two_Objects/worker.h @@ -0,0 +1,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 */ |