Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / tests / Bug_3251_Regression / DllOrb.h
bloba13e85e847d1577d12cf17f5367e6b341411dcb6
1 #ifndef bug_3251_DllORB_h
2 #define bug_3251_DllORB_h
4 #include "ace/Barrier.h"
5 #include "ace/Task.h"
6 #include "tao/ORB.h"
8 #include "bug_3251_export.h"
9 #include "tao/PortableServer/PortableServer.h"
11 #include <memory>
13 class bug_3251_Export DllOrb : public ACE_Task_Base
15 public:
16 DllOrb ();
17 virtual ~DllOrb ();
19 CORBA::ORB_ptr orb () const { return CORBA::ORB::_duplicate (mv_orb_.in ()); }
21 virtual int init (int argc, ACE_TCHAR* argv[]);
23 virtual int fini ();
25 virtual int svc ();
27 private:
28 std::unique_ptr<ACE_Thread_Barrier> ma_barrier_;
29 CORBA::ORB_var mv_orb_;
30 PortableServer::POA_var mv_rootPOA_;
31 PortableServer::POAManager_var mv_poaManager_;
34 ACE_FACTORY_DECLARE (bug_3251, DllOrb)
36 #endif /* bug_3251_DllORB_h */