summaryrefslogtreecommitdiff
path: root/TAO/tao/default_resource.h
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-05-19 03:20:25 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-05-19 03:20:25 +0000
commit357ad7bc4db6a9c38a43265b437db97a25720a57 (patch)
treee0a50146a2e3ae6511a14b81c2b2bdf7a1553e70 /TAO/tao/default_resource.h
parentc6a7e5eaf430df767ad1abc2ae2888623fda9e99 (diff)
downloadATCD-357ad7bc4db6a9c38a43265b437db97a25720a57.tar.gz
ChangeLogTag:Tue May 18 22:19:36 1999 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/default_resource.h')
-rw-r--r--TAO/tao/default_resource.h32
1 files changed, 13 insertions, 19 deletions
diff --git a/TAO/tao/default_resource.h b/TAO/tao/default_resource.h
index 5e2a3d49c09..4c1abc6afa0 100644
--- a/TAO/tao/default_resource.h
+++ b/TAO/tao/default_resource.h
@@ -31,18 +31,6 @@
// ****************************************************************
-class TAO_Default_Reactor : public ACE_Reactor
-{
- // = TITLE
- //
- // Force TAO to use Select Reactor.
-public:
- TAO_Default_Reactor (int nolock = 0);
- virtual ~TAO_Default_Reactor (void);
-};
-
-// ****************************************************************
-
class TAO_Export TAO_Allocated_Resources
{
// = TITLE
@@ -84,7 +72,7 @@ public:
TAO_Connector_Registry cr_;
// The Connector Registry!
- TAO_Default_Reactor *r_;
+ ACE_Reactor *r_;
// The Reactor.
TAO_Object_Adapter *object_adapter_;
@@ -143,8 +131,12 @@ public:
// = Type of Reactor
enum
{
- TAO_TOKEN, // Use ACE_Token as Select_Reactor's internal lock
- TAO_NULL_LOCK // Use ACE_Noop_Token as Select_Reactor's internal lock
+ TAO_REACTOR_SELECT_MT, // Use ACE_Token
+ TAO_REACTOR_SELECT_ST, // Use ACE_Noop_Token
+ TAO_REACTOR_FL,
+ TAO_REACTOR_XT,
+ TAO_REACTOR_WFMO,
+ TAO_REACTOR_MSGWFMO
};
// = Range of values for <{resource source specifier}>.
@@ -173,7 +165,6 @@ public:
virtual TAO_POA *get_root_poa (void);
virtual TAO_Object_Adapter *object_adapter (void);
virtual TAO_GLOBAL_Collocation_Table *get_global_collocation_table (void);
- virtual int reactor_lock (void);
virtual ACE_Allocator* input_cdr_dblock_allocator (void);
virtual ACE_Allocator* input_cdr_buffer_allocator (void);
virtual ACE_Allocator* output_cdr_dblock_allocator (void);
@@ -181,6 +172,10 @@ public:
virtual ACE_Data_Block *create_input_cdr_data_block (size_t size);
protected:
+ ACE_Reactor_Impl *allocate_reactor_impl (void) const;
+ // Obtain the reactor implementation
+
+protected:
int resource_source_;
// Flag indicating whether resources should be global or
@@ -196,9 +191,8 @@ protected:
// thread-specific. It defaults to TAO_GLOBAL if not set
// specifically.
- int reactor_lock_;
- // Flag indicating wether we should provide a lock-freed reactor
- // or not.
+ int reactor_type_;
+ // Flag indicating which kind of reactor we should use.
int cdr_allocator_source_;
// The source for the CDR allocator. Even with a TSS resource