Merge pull request #2218 from jwillemsen/jwi-pthreadsigmask
[ACE_TAO.git] / TAO / tao / Utils / Implicit_Deactivator.cpp
blobc8175590c58d1dbac1a82ba449e96620a18657ed
1 #include "tao/Utils/Implicit_Deactivator.h"
2 #include "tao/PortableServer/Servant_Base.h"
4 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
6 void
7 TAO::Utils::Implicit_Deactivation_Functor::operator () (
8 PortableServer::ServantBase * servant) noexcept
10 try
12 PortableServer::POA_var poa (servant->_default_POA ());
14 PortableServer::ObjectId_var id (poa->servant_to_id (servant));
16 poa->deactivate_object (id.in());
18 catch (...)
20 // @@ Cannot let exceptions escape, yet we need to log them!
24 TAO_END_VERSIONED_NAMESPACE_DECL