diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:21 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:21 +0000 |
commit | 3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c (patch) | |
tree | 197c810e5f5bce17b1233a7cb8d7b50c0bcd25e2 /TAO/tao/FlResource/FlResource_Factory.cpp | |
parent | 6b846cf03c0bcbd8c276cb0af61a181e5f98eaae (diff) | |
download | ATCD-3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c.tar.gz |
Repo restructuring
Diffstat (limited to 'TAO/tao/FlResource/FlResource_Factory.cpp')
-rw-r--r-- | TAO/tao/FlResource/FlResource_Factory.cpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/TAO/tao/FlResource/FlResource_Factory.cpp b/TAO/tao/FlResource/FlResource_Factory.cpp new file mode 100644 index 00000000000..a280383b065 --- /dev/null +++ b/TAO/tao/FlResource/FlResource_Factory.cpp @@ -0,0 +1,39 @@ +//$Id$ + +#include "tao/FlResource/FlResource_Factory.h" +#include "tao/debug.h" +#include "ace/FlReactor.h" + +ACE_RCSID( TAO_FlResource, + FlResource_Factory, + "$Id$"); + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +namespace TAO +{ + FlResource_Factory::FlResource_Factory (void) + : reactor_impl_( 0 ) + { + } + + ACE_Reactor_Impl * + FlResource_Factory::reactor_impl (void) + { + // synchronized by external locks + if (!this->reactor_impl_) + { + ACE_NEW_RETURN (this->reactor_impl_, + ACE_FlReactor (), + 0); + + if (TAO_debug_level > 0) + ACE_DEBUG ((LM_DEBUG, + "TAO (%P|%t) - ACE_FlReactor created \n")); + } + + return this->reactor_impl_; + } +} + +TAO_END_VERSIONED_NAMESPACE_DECL |