summaryrefslogtreecommitdiff
path: root/TAO/tao/poa_T.h
blob: 8f9e29bdb6cdb3549d157a1d335d4bd8daaf653c (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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// $Id$

#if !defined (POA_T_H)
#define 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 &env);

  TAO_Locked_POA (const char *adapter_name,
                  PortableServer::POAManager_ptr poa_manager,
                  TAO_POA_Policies &policies,
                  PortableServer::POA_ptr parent,
                  TAO_Object_Table &active_object_table,
                  CORBA::Environment &env);

  virtual TAO_POA *clone (const char *adapter_name,
                          PortableServer::POAManager_ptr poa_manager,
                          TAO_POA_Policies &policies,
                          PortableServer::POA_ptr parent,
                          CORBA::Environment &env);

  virtual TAO_POA *clone (const char *adapter_name,
                          PortableServer::POAManager_ptr poa_manager,
                          TAO_POA_Policies &policies,
                          PortableServer::POA_ptr parent,
                          TAO_Object_Table &active_object_table,
                          CORBA::Environment &env);

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 /* POA_T_H */