#include <Policy_Manager.h>
Inheritance diagram for TAO_Policy_Manager:


Public Member Functions | |
| TAO_Policy_Manager (void) | |
| constructor | |
| CORBA::Policy_ptr | get_policy (CORBA::PolicyType policy) |
| Obtain a single policy. | |
| CORBA::Policy_ptr | get_cached_policy (TAO_Cached_Policy_Type type) |
| Obtain a single cached policy. | |
| virtual CORBA::PolicyList * | get_policy_overrides (const CORBA::PolicyTypeSeq &ts) |
| virtual void | set_policy_overrides (const CORBA::PolicyList &policies, CORBA::SetOverrideType set_add) |
Private Member Functions | |
| TAO_Policy_Manager (TAO_Policy_Manager const &) | |
| TAO_Policy_Manager & | operator= (TAO_Policy_Manager const &) |
Private Attributes | |
| TAO_SYNCH_MUTEX | mutex_ |
| Protect access. | |
| TAO_Policy_Set | impl_ |
| The implementation. | |
|
|
constructor
Definition at line 8 of file Policy_Manager.inl. References TAO_POLICY_ORB_SCOPE.
00009 : impl_ (TAO_POLICY_ORB_SCOPE) 00010 { 00011 } |
|
|
|
|
|
Obtain a single cached policy.
Definition at line 21 of file Policy_Manager.inl. References ACE_GUARD_RETURN, TAO_Policy_Set::get_cached_policy(), and TAO_SYNCH_MUTEX. Referenced by TAO_ORB_Core::get_cached_policy().
00022 {
00023 // @@ Previous code used a "double-checked locking hack" to check
00024 // if the policy was set before grabbing the lock to actually get
00025 // it, so that could save a lock operation. This was removed, as
00026 // it is not as easy to do this anymore.
00027 ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->mutex_, 0);
00028
00029 return this->impl_.get_cached_policy (type);
00030 }
|
|
|
Obtain a single policy.
Definition at line 14 of file Policy_Manager.inl. References ACE_GUARD_RETURN, TAO_Policy_Set::get_policy(), CORBA::PolicyType, and TAO_SYNCH_MUTEX. Referenced by TAO_ORB_Core::get_policy().
00015 {
00016 ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->mutex_, 0);
00017 return this->impl_.get_policy (policy);
00018 }
|
|
|
Definition at line 19 of file Policy_Manager.cpp. References ACE_GUARD_RETURN, TAO_Policy_Set::get_policy_overrides(), CORBA::PolicyTypeSeq, and TAO_SYNCH_MUTEX.
00020 {
00021 ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->mutex_, 0);
00022 return this->impl_.get_policy_overrides (ts);
00023 }
|
|
|
|
|
||||||||||||
|
Definition at line 26 of file Policy_Manager.cpp. References ACE_GUARD, CORBA::PolicyList, TAO_Policy_Set::set_policy_overrides(), and TAO_SYNCH_MUTEX.
00028 {
00029 ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->mutex_);
00030 this->impl_.set_policy_overrides (policies, set_add);
00031 }
|
|
|
The implementation.
Definition at line 74 of file Policy_Manager.h. |
|
|
Protect access.
Definition at line 71 of file Policy_Manager.h. |
1.3.6