Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / Policy_Manager.cpp
blob87320fbca671a71a2cb455314c9d83858ebc3d72
1 #include "tao/Policy_Manager.h"
3 #if (TAO_HAS_CORBA_MESSAGING == 1)
5 #if !defined (__ACE_INLINE__)
6 # include "tao/Policy_Manager.inl"
7 #endif /* ! __ACE_INLINE__ */
9 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
11 CORBA::PolicyList *
12 TAO_Policy_Manager::get_policy_overrides (const CORBA::PolicyTypeSeq & ts)
14 ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->mutex_, nullptr);
15 return this->impl_.get_policy_overrides (ts);
18 void
19 TAO_Policy_Manager::set_policy_overrides (const CORBA::PolicyList & policies,
20 CORBA::SetOverrideType set_add)
22 ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->mutex_);
23 this->impl_.set_policy_overrides (policies, set_add);
26 TAO_END_VERSIONED_NAMESPACE_DECL
28 #endif /* TAO_HAS_CORBA_MESSAGING == 1 */