1 #include "tao/XtResource/XtResource_Factory.h"
3 #include "ace/XtReactor/XtReactor.h"
5 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
9 XtResource_Factory::XtResource_Factory (XtAppContext p_context
):
10 reactor_impl_(nullptr),
16 XtResource_Factory::reactor_impl ()
18 // synchronized by external locks
21 TAOLIB_ERROR ((LM_ERROR
,
22 ACE_TEXT("TAO (%P|%t) - XtAppContext is undefined.")
23 ACE_TEXT(" Cannot create ACE_XtReactor\n")));
24 return nullptr; // Private and undefined;
27 if (!this->reactor_impl_
)
29 ACE_NEW_RETURN (this->reactor_impl_
,
30 ACE_XtReactor (this->context_
),
33 if (TAO_debug_level
> 0)
34 TAOLIB_DEBUG ((LM_DEBUG
,
35 "TAO (%P|%t) - ACE_XtReactor created\n"));
38 return this->reactor_impl_
;
42 TAO_END_VERSIONED_NAMESPACE_DECL