summaryrefslogtreecommitdiff
path: root/TAO/tao/poa_T.cpp
blob: ea87c7da3896f9a92528ddb6bf122135f9a6703f (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
// $Id$

#ifndef POA_T_CPP
#define POA_T_CPP

#include "tao/poa_T.h"

ACE_RCSID(tao, poa_T, "$Id$")

template <class ACE_LOCKING_MECHANISM>
TAO_Locked_POA<ACE_LOCKING_MECHANISM>::TAO_Locked_POA (const char *adapter_name,
                                                       PortableServer::POAManager_ptr poa_manager,
                                                       TAO_POA_Policies &policies,
                                                       PortableServer::POA_ptr parent,
                                                       CORBA::Environment &env)
  : TAO_POA (adapter_name,
             poa_manager,
             policies,
             parent,
             env)
{
}

template <class ACE_LOCKING_MECHANISM> TAO_POA *
TAO_Locked_POA<ACE_LOCKING_MECHANISM>::clone (const char *adapter_name,
                                              PortableServer::POAManager_ptr poa_manager,
                                              TAO_POA_Policies &policies,
                                              PortableServer::POA_ptr parent,
                                              CORBA::Environment &env)
{
  return new SELF (adapter_name,
                   poa_manager,
                   policies,
                   parent,
                   env);
}


template <class ACE_LOCKING_MECHANISM> ACE_Lock &
TAO_Locked_POA<ACE_LOCKING_MECHANISM>::lock (void)
{
  return this->lock_;
}

template <class ACE_LOCKING_MECHANISM>
TAO_Locked_POA_Manager<ACE_LOCKING_MECHANISM>::TAO_Locked_POA_Manager (void)
  : TAO_POA_Manager ()
{
}


template <class ACE_LOCKING_MECHANISM> TAO_POA_Manager *
TAO_Locked_POA_Manager<ACE_LOCKING_MECHANISM>::clone (void)
{
  return new SELF;
}

template <class ACE_LOCKING_MECHANISM> ACE_Lock &
TAO_Locked_POA_Manager<ACE_LOCKING_MECHANISM>::lock (void)
{
  return this->lock_;
}

#endif /* POA_T_CPP */