summaryrefslogtreecommitdiff
path: root/TAO/tao/Policy_Manager.cpp
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-05-24 21:51:09 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-05-24 21:51:09 +0000
commita013c3ad8c0111f6172ea04f37fd99efcda7af45 (patch)
treef994eaf1ae78ccde1528369fd72973fc56c8bcd2 /TAO/tao/Policy_Manager.cpp
parent9a35091ad894ef93efb090e257de750dc25845a5 (diff)
downloadATCD-a013c3ad8c0111f6172ea04f37fd99efcda7af45.tar.gz
Mon May 24 16:28:20 1999 Irfan Pyarali <irfan@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/Policy_Manager.cpp')
-rw-r--r--TAO/tao/Policy_Manager.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/TAO/tao/Policy_Manager.cpp b/TAO/tao/Policy_Manager.cpp
index 24eae0d45b7..7ba07791b88 100644
--- a/TAO/tao/Policy_Manager.cpp
+++ b/TAO/tao/Policy_Manager.cpp
@@ -145,4 +145,23 @@ TAO_Policy_Manager_Impl::get_policy (
// ****************************************************************
+TAO_Policy_Current_Impl &
+TAO_Policy_Current::implementation (TAO_Policy_Current_Impl &current)
+{
+ TAO_ORB_Core_TSS_Resources *tss =
+ TAO_ORB_CORE_TSS_RESOURCES::instance ();
+
+ TAO_Policy_Current_Impl *old = tss->policy_current_;
+ tss->policy_current_ = &current;
+ return *old;
+}
+
+TAO_Policy_Current_Impl &
+TAO_Policy_Current::implementation (void)
+{
+ return *TAO_ORB_CORE_TSS_RESOURCES::instance ()->policy_current_;
+}
+
+// ****************************************************************
+
#endif /* TAO_HAS_CORBA_MESSAGING */