2 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
5 TAO_Policy_Manager::TAO_Policy_Manager (void)
6 : impl_ (TAO_POLICY_ORB_SCOPE)
10 ACE_INLINE CORBA::Policy_ptr
11 TAO_Policy_Manager::get_policy (CORBA::PolicyType policy)
13 ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->mutex_, 0);
14 return this->impl_.get_policy (policy);
17 ACE_INLINE CORBA::Policy_ptr
18 TAO_Policy_Manager::get_cached_policy (TAO_Cached_Policy_Type type)
20 // @@ Previous code used a "double-checked locking hack" to check
21 // if the policy was set before grabbing the lock to actually get
22 // it, so that could save a lock operation. This was removed, as
23 // it is not as easy to do this anymore.
24 ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->mutex_, 0);
26 return this->impl_.get_cached_policy (type);
29 TAO_END_VERSIONED_NAMESPACE_DECL