blob: 89e77666fa6587e532f5a1beb5c078f42dfe8731 (
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
|
// $Id$
#ifndef (TAO_POA_T_H)
#define TAO_POA_T_H
#include "tao/poa.h"
template <class ACE_LOCKING_MECHANISM>
class TAO_Locked_POA : public TAO_POA
{
public:
TAO_Locked_POA (const char *adapter_name,
PortableServer::POAManager_ptr poa_manager,
TAO_POA_Policies &policies,
PortableServer::POA_ptr parent,
CORBA_Environment &TAO_IN_ENV = CORBA_Environment::default_environment ());
virtual TAO_POA *clone (const char *adapter_name,
PortableServer::POAManager_ptr poa_manager,
TAO_POA_Policies &policies,
PortableServer::POA_ptr parent,
CORBA_Environment &TAO_IN_ENV = CORBA_Environment::default_environment ());
protected:
virtual ACE_Lock &lock (void);
ACE_Lock_Adapter<ACE_LOCKING_MECHANISM> lock_;
typedef TAO_Locked_POA<ACE_LOCKING_MECHANISM> SELF;
};
template <class ACE_LOCKING_MECHANISM>
class TAO_Locked_POA_Manager : public TAO_POA_Manager
{
public:
TAO_Locked_POA_Manager (void);
virtual TAO_POA_Manager *clone (void);
protected:
virtual ACE_Lock &lock (void);
ACE_Lock_Adapter<ACE_LOCKING_MECHANISM> lock_;
typedef TAO_Locked_POA_Manager<ACE_LOCKING_MECHANISM> SELF;
};
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "tao/poa_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
#pragma implementation "poa_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
#endif /* TAO_POA_T_H */
|