summaryrefslogtreecommitdiff
path: root/TAO/tao/MProfile.i
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-09-01 05:06:42 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-09-01 05:06:42 +0000
commit96f2e77772c7c855d468a8b2ffed2608da6fe89c (patch)
treecc9c7723971543db846eaa8ee006f362f02274d4 /TAO/tao/MProfile.i
parentab4409112cf5f931d25202a2ea0d0ea4dd6d4a03 (diff)
downloadATCD-96f2e77772c7c855d468a8b2ffed2608da6fe89c.tar.gz
ChangeLogTag:Thu Aug 31 16:31:04 2000 Carlos O'Ryan <coryan@uci.edu>
Diffstat (limited to 'TAO/tao/MProfile.i')
-rw-r--r--TAO/tao/MProfile.i21
1 files changed, 10 insertions, 11 deletions
diff --git a/TAO/tao/MProfile.i b/TAO/tao/MProfile.i
index 4eee314cef0..5c0220ea8b8 100644
--- a/TAO/tao/MProfile.i
+++ b/TAO/tao/MProfile.i
@@ -45,7 +45,7 @@ TAO_MProfile::~TAO_MProfile (void)
(*policy_list_)[i]->destroy ();
}
delete policy_list_;
-
+
this->cleanup ();
}
@@ -258,11 +258,11 @@ TAO_MProfile::create_policy_list (void)
ACE_ASSERT (this->policy_list_ == 0);
ACE_NEW (this->policy_list_, CORBA::PolicyList ());
-
+
// Post-Condition: Make sure that the memory get allcated
// for real.
ACE_ASSERT (this->policy_list_ != 0);
-
+
// @@ Marina & Irfan I would raise an exception in this case.
}
@@ -273,15 +273,15 @@ TAO_MProfile::policy_list (CORBA::PolicyList *policy_list)
this->policy_list_ = policy_list;
}
-ACE_INLINE CORBA::PolicyList*
-TAO_MProfile::policy_list (void)
+ACE_INLINE CORBA::PolicyList*
+TAO_MProfile::policy_list (void)
{
-
+
// Here we use Double-Checked Loking to
- // avoid to create more then one policy list
+ // avoid to create more then one policy list
// if more thread try to get a policy for
// the first time, at the same time.
-
+
if (this->is_policy_list_initialized_)
return this->policy_list_;
else
@@ -294,7 +294,7 @@ TAO_MProfile::policy_list (void)
this->get_current_profile ()->policies ();
// Right now all the profile share the same
// policies, so any profile can be picked up
- // to parse the policy.
+ // to parse the policy.
// So we pick the current profile, so that no
// state is changed in the MProfile.
@@ -302,5 +302,4 @@ TAO_MProfile::policy_list (void)
}
}
return this->policy_list_;
-
-}
+}