summaryrefslogtreecommitdiff
path: root/TAO/tao/Strategies/advanced_resource.cpp
diff options
context:
space:
mode:
authordoccvs <doccvs@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-11-15 00:35:52 +0000
committerdoccvs <doccvs@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-11-15 00:35:52 +0000
commit3ca48815abce890b97b2cdfb42c08fe73038c520 (patch)
treea9b0028fbfe020911e0fa191cb90937b06f7f744 /TAO/tao/Strategies/advanced_resource.cpp
parent73de7e1f2e721ca0b18c774b62cbd19cd67307c7 (diff)
downloadATCD-3ca48815abce890b97b2cdfb42c08fe73038c520.tar.gz
ChangeLogTag: Tue Nov 14 16:29:20 2000 Priyanka Gontla <pgontla@ece.uci.edu>
Diffstat (limited to 'TAO/tao/Strategies/advanced_resource.cpp')
-rw-r--r--TAO/tao/Strategies/advanced_resource.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/TAO/tao/Strategies/advanced_resource.cpp b/TAO/tao/Strategies/advanced_resource.cpp
index a42e2af03ba..84dc72f5dc3 100644
--- a/TAO/tao/Strategies/advanced_resource.cpp
+++ b/TAO/tao/Strategies/advanced_resource.cpp
@@ -25,13 +25,14 @@
#include "ace/TkReactor.h"
#include "ace/WFMO_Reactor.h"
#include "ace/Msg_WFMO_Reactor.h"
+#include "ace/TP_Reactor.h"
ACE_RCSID(Strategies, advanced_resource, "$Id$")
TAO_Advanced_Resource_Factory::TAO_Advanced_Resource_Factory (void)
:sched_policy_ (ACE_SCHED_OTHER),
reactor_registry_type_ (TAO_SINGLE_REACTOR),
- reactor_type_ (TAO_REACTOR_SELECT_MT),
+ reactor_type_ (TAO_REACTOR_TP),
priority_mapping_type_ (TAO_PRIORITY_MAPPING_DIRECT),
cdr_allocator_type_ (TAO_ALLOCATOR_THREAD_LOCK)
{
@@ -394,7 +395,7 @@ TAO_Advanced_Resource_Factory::init_protocol_factories (void)
for (; factory != end; factory++)
{
const ACE_CString &name = (*factory)->protocol_name ();
-
+
(*factory)->factory (
ACE_Dynamic_Service<TAO_Protocol_Factory>::instance (name.c_str ()));
if ((*factory)->factory () == 0)
@@ -452,7 +453,6 @@ TAO_Advanced_Resource_Factory::allocate_reactor_impl (void) const
ACE_Reactor_Impl *impl = 0;
switch (this->reactor_type_)
{
- default:
case TAO_REACTOR_SELECT_MT:
ACE_NEW_RETURN (impl,
TAO_REACTOR ((ACE_Sig_Handler*)0,
@@ -496,6 +496,14 @@ TAO_Advanced_Resource_Factory::allocate_reactor_impl (void) const
ACE_NEW_RETURN (impl, ACE_Msg_WFMO_Reactor, 0);
#endif /* ACE_WIN32 && !ACE_HAS_WINCE */
break;
+
+ default:
+ case TAO_REACTOR_TP:
+ ACE_NEW_RETURN (impl, ACE_TP_Reactor ((ACE_Sig_Handler*)0,
+ (ACE_Timer_Queue*)0,
+ this->reactor_mask_signals_),
+ 0);
+ break;
}
return impl;