Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / examples / CSD_Strategy / ThreadPool5 / OrbTask.h
blob039da12da9f35a1faac65d6526d198eeecf1ef8e
1 // This may look like C, but it's really -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file OrbTask.h
7 * @author Tim Bradley <bradley_t@ociweb.com>
8 */
9 //=============================================================================
11 #ifndef ORB_TASK_H
12 #define ORB_TASK_H
14 #include "ace/Task.h"
15 #include "tao/ORB.h"
17 class OrbTask : public ACE_Task_Base
19 public:
21 OrbTask(CORBA::ORB_ptr orb, unsigned num_threads = 1);
22 virtual ~OrbTask();
24 virtual int open(void* x = 0);
25 virtual int svc();
26 virtual int close(u_long);
29 private:
31 CORBA::ORB_var orb_;
32 unsigned num_threads_;
35 #endif