00001 // $Id: Policy_Manager.cpp 76995 2007-02-11 12:51:42Z johnnyw $ 00002 00003 #include "tao/Policy_Manager.h" 00004 00005 #if (TAO_HAS_CORBA_MESSAGING == 1) 00006 00007 #if !defined (__ACE_INLINE__) 00008 # include "tao/Policy_Manager.inl" 00009 #endif /* ! __ACE_INLINE__ */ 00010 00011 00012 ACE_RCSID (tao, 00013 Policy_Manager, 00014 "$Id: Policy_Manager.cpp 76995 2007-02-11 12:51:42Z johnnyw $") 00015 00016 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00017 00018 CORBA::PolicyList * 00019 TAO_Policy_Manager::get_policy_overrides (const CORBA::PolicyTypeSeq & ts) 00020 { 00021 ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->mutex_, 0); 00022 return this->impl_.get_policy_overrides (ts); 00023 } 00024 00025 void 00026 TAO_Policy_Manager::set_policy_overrides (const CORBA::PolicyList & policies, 00027 CORBA::SetOverrideType set_add) 00028 { 00029 ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->mutex_); 00030 this->impl_.set_policy_overrides (policies, set_add); 00031 } 00032 00033 TAO_END_VERSIONED_NAMESPACE_DECL 00034 00035 #endif /* TAO_HAS_CORBA_MESSAGING == 1 */