summaryrefslogtreecommitdiff
path: root/TAO/tao/PI/PICurrent_Impl.inl
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/PI/PICurrent_Impl.inl')
-rw-r--r--TAO/tao/PI/PICurrent_Impl.inl27
1 files changed, 6 insertions, 21 deletions
diff --git a/TAO/tao/PI/PICurrent_Impl.inl b/TAO/tao/PI/PICurrent_Impl.inl
index 78c5e33cac6..8b708ec7f5a 100644
--- a/TAO/tao/PI/PICurrent_Impl.inl
+++ b/TAO/tao/PI/PICurrent_Impl.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE void
TAO::PICurrent_Impl::copy_callback (TAO::PICurrent_Copy_Callback *cb)
{
@@ -29,36 +27,25 @@ TAO::PICurrent_Impl::current_slot_table (void)
this->lc_slot_table_ == 0 ? this->slot_table_ : *this->lc_slot_table_;
}
-ACE_INLINE bool
+ACE_INLINE void
TAO::PICurrent_Impl::lc_slot_table (TAO::PICurrent_Impl *p)
{
- // Being told to lazy copy some other table?
if (p != 0)
{
- // Which actual table are we supposed to lazy copy?
Table * t = &p->current_slot_table ();
- // Only if we have not already lazy copied this table
if (t != this->lc_slot_table_)
{
- // Whould this be a lazy copy of ourselves?
- if (t == &this->slot_table_)
- this->lc_slot_table_ = 0; // Already ourself!
- else
- {
- this->lc_slot_table_ = t;
+ this->lc_slot_table_ = t;
- // Ensure remote table will tell us if it is
- // going to change or destroy itself.
- if (this != p)
- p->destruction_callback (this);
- }
+ if (this != p)
+ p->destruction_callback (this);
}
+ else
+ this->lc_slot_table_ = 0;
}
else
this->lc_slot_table_ = 0;
-
- return (0 != this->lc_slot_table_);
}
ACE_INLINE TAO::PICurrent_Impl::Table *
@@ -66,5 +53,3 @@ TAO::PICurrent_Impl::lc_slot_table (void) const
{
return this->lc_slot_table_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL