diff options
Diffstat (limited to 'modules/CIAO/ciao/Containers/Swapping/Dynamic_Component_Activator.inl')
-rw-r--r-- | modules/CIAO/ciao/Containers/Swapping/Dynamic_Component_Activator.inl | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/CIAO/ciao/Containers/Swapping/Dynamic_Component_Activator.inl b/modules/CIAO/ciao/Containers/Swapping/Dynamic_Component_Activator.inl new file mode 100644 index 00000000000..c35b7d498b6 --- /dev/null +++ b/modules/CIAO/ciao/Containers/Swapping/Dynamic_Component_Activator.inl @@ -0,0 +1,24 @@ +// $Id$ + +namespace CIAO +{ + ACE_INLINE void + Dynamic_Component_Activator::add_servant_to_map( + PortableServer::ObjectId &oid, + Dynamic_Component_Servant_Base* servant) + { + this->servant_map_.bind (oid, servant); + } + + ACE_INLINE void + Dynamic_Component_Activator::delete_servant_from_map( + PortableServer::ObjectId &oid) + { + Dynamic_Component_Servant_Base* servant = 0; + + if (this->servant_map_.unbind (oid, servant) != 0) + { + CIAO_DEBUG ((LM_DEBUG, "Invalid object reference\n")); + } + } +} |