Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tao / FoxResource / FoxResource_Factory.cpp
blob794abcd15ab2794156251430a9c650a82f0338bb
1 #include "tao/FoxResource/FoxResource_Factory.h"
2 #include "tao/debug.h"
3 #include "ace/FoxReactor/FoxReactor.h"
5 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
7 namespace TAO
9 FoxResource_Factory::FoxResource_Factory (FXApp *app)
10 : reactor_impl_ (0)
11 , fxapp_ (app)
15 ACE_Reactor_Impl *
16 FoxResource_Factory::reactor_impl ()
18 if (this->fxapp_ == 0)
19 return 0;
21 // synchronized by external locks
22 if (!this->reactor_impl_)
24 ACE_NEW_RETURN (this->reactor_impl_,
25 ACE_FoxReactor (),
26 0);
28 if (TAO_debug_level > 0)
29 TAOLIB_DEBUG ((LM_DEBUG,
30 "TAO (%P|%t) - ACE_FoxReactor created\n"));
33 return this->reactor_impl_;
37 TAO_END_VERSIONED_NAMESPACE_DECL