Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / TkResource / TkResource_Factory.cpp
bloba4e4b5196bd4d3d2e7b6ed2a55c0f25172dc15ef
1 #include "tao/TkResource/TkResource_Factory.h"
2 #include "tao/debug.h"
3 #include "ace/TkReactor/TkReactor.h"
5 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
7 namespace TAO
9 TkResource_Factory::TkResource_Factory ()
10 : reactor_impl_ (0)
14 ACE_Reactor_Impl *
15 TkResource_Factory::reactor_impl ()
17 // synchronized by external locks
18 if (!this->reactor_impl_)
20 ACE_NEW_RETURN (this->reactor_impl_,
21 ACE_TkReactor (),
22 0);
24 if (TAO_debug_level > 0)
25 TAOLIB_DEBUG ((LM_DEBUG,
26 "TAO (%P|%t) - ACE_TkReactor created\n"));
29 return this->reactor_impl_;
33 TAO_END_VERSIONED_NAMESPACE_DECL