diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-08 00:31:25 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-08 00:31:25 +0000 |
commit | 858405cd45d4824c2288f2e53eb2c6860504ccfd (patch) | |
tree | 1e1b841af7a4d63109e2a80f92418b216988ca48 /TAO/tao/xt_resource.cpp | |
parent | c39f02e150db62146cbe64df0d61e1fb9984edd4 (diff) | |
download | ATCD-858405cd45d4824c2288f2e53eb2c6860504ccfd.tar.gz |
ChangeLogTag:Wed Jul 7 19:24:00 1999 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/xt_resource.cpp')
-rw-r--r-- | TAO/tao/xt_resource.cpp | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/TAO/tao/xt_resource.cpp b/TAO/tao/xt_resource.cpp new file mode 100644 index 00000000000..f6204af62d2 --- /dev/null +++ b/TAO/tao/xt_resource.cpp @@ -0,0 +1,42 @@ +// $Id$ + +#include "tao/xt_resource.h" + +#if defined(ACE_HAS_XT) + +#if !defined (__ACE_INLINE__) +# include "tao/xt_resource.i" +#endif /* ! __ACE_INLINE__ */ + +ACE_RCSID(tao, xt_resource, "$Id$") + +XtAppContext +TAO_XT_Resource_Factory::context_ = 0; + +ACE_Reactor_Impl* +TAO_XT_Resource_Factory::allocate_reactor_impl (void) const +{ + if (TAO_XT_Resource_Factory::context_ == 0) + return 0; + + ACE_Reactor_Impl *impl = 0; + + ACE_NEW_RETURN (impl, ACE_XtReactor (TAO_XT_Resource_Factory::context_), 0); + return impl; +} + +void +TAO_XT_Resource_Factory::set_context (XtAppContext context) +{ + TAO_XT_Resource_Factory::context_ = context; +} + +ACE_STATIC_SVC_DEFINE (TAO_XT_Resource_Factory, + ASYS_TEXT ("XT_Resource_Factory"), + ACE_SVC_OBJ_T, + &ACE_SVC_NAME (TAO_XT_Resource_Factory), + ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ, + 0) +ACE_FACTORY_DEFINE (TAO, TAO_XT_Resource_Factory) + +#endif /* ACE_HAS_XT */ |