diff options
Diffstat (limited to 'TAO/tao/TkResource_Factory.cpp')
-rw-r--r-- | TAO/tao/TkResource_Factory.cpp | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/TAO/tao/TkResource_Factory.cpp b/TAO/tao/TkResource_Factory.cpp new file mode 100644 index 00000000000..765e7a40e02 --- /dev/null +++ b/TAO/tao/TkResource_Factory.cpp @@ -0,0 +1,37 @@ +//$Id$ + +#include "tao/TkResource_Factory.h" +#include "tao/debug.h" +#include "ace/TkReactor.h" + +ACE_RCSID( TAO_TkResource, + TkResource_Factory, + "$Id$"); + + +namespace TAO +{ + + TkResource_Factory::TkResource_Factory (): + reactor_impl_( 0 ) + { + } + + ACE_Reactor_Impl * + TkResource_Factory::reactor_impl (void) + { + // synchronized by external locks + if (!this->reactor_impl_) + { + ACE_NEW_RETURN (this->reactor_impl_, + ACE_TkReactor (), + 0); + + if (TAO_debug_level > 0) + ACE_DEBUG ((LM_DEBUG, + "TAO (%P|%t) - ACE_TkReactor created \n")); + } + + return this->reactor_impl_; + } +} |