blob: 9832228d6e47b3f57f04acda82515f95f51e5dc2 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
/*
* @author Iliyan jeliazkov <iliyan@ociweb.com>
* @author Lothar Werzinger <lothar@tradescape.biz>
*
* $Id$
*/
#ifndef DllOrb_h
#define DllOrb_h
#include "ace/Barrier.h"
#include "ace/Task.h"
#include "tao/ORB.h"
#include "tao/PortableServer/PortableServer.h"
#include "DllOrb_Export.h"
/** The CORBA ORB as a dynamic loadable module.
*
*/
class DllOrb_Export DllOrb
:
public ACE_Task_Base
{
public:
/// Default constructor.
DllOrb (int nthreads = 1);
/// Destructor.
~DllOrb (void) throw ();
CORBA::ORB_ptr orb (void) const;
virtual int init (int argc, char *argv[]);
virtual int fini (void);
// protected types and methods
protected:
virtual int svc (void);
// private methods and instance variables
private:
int m_nthreads_;
unsigned int m_failPrePostInit;
#if defined (ACE_HAS_THREADS)
ACE_Thread_Barrier * mp_barrier;
#endif
CORBA::ORB_var mv_orb;
PortableServer::POA_var mv_rootPOA;
PortableServer::POAManager_var mv_poaManager;
}; /* end of DllOrb */
ACE_FACTORY_DECLARE (DllOrb, DllOrb)
#endif /* DllOrb_h */
|