Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / tests / CSD_Strategy_Tests / TP_Common / OrbTask.h
blobe7d61ee0b1893ea99922aff51ac9f4d403d68fa8
1 //=============================================================================
2 /**
3 * @file OrbTask.h
5 * @author Tim Bradley <bradley_t@ociweb.com>
6 */
7 //=============================================================================
9 #ifndef ORB_TASK_H
10 #define ORB_TASK_H
12 #include "CSD_TP_Test_Export.h"
13 #include "ace/Task.h"
14 #include "tao/ORB.h"
16 class CSD_TP_Test_Export OrbTask : public ACE_Task_Base
18 public:
19 OrbTask(CORBA::ORB_ptr orb, unsigned num_threads = 1);
20 ~OrbTask() override = default;
22 int open(void* x = 0) override;
23 int svc() override;
24 int close(u_long) override;
26 private:
27 CORBA::ORB_var orb_;
28 unsigned num_threads_;
31 #endif