summaryrefslogtreecommitdiff
path: root/TAO/tao/default_resource.h
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2000-09-11 19:58:09 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2000-09-11 19:58:09 +0000
commit0a4c18a73e705d17eefa90254eb51eaa3961e7df (patch)
treee9b2eb2d64fdfe257d3a878ba7e6ea3b02b43efc /TAO/tao/default_resource.h
parentd349762282f809a912913242c76644b43f9fc98a (diff)
downloadATCD-0a4c18a73e705d17eefa90254eb51eaa3961e7df.tar.gz
ChangeLogTag:Mon Sep 11 12:53:03 2000 Ossama Othman <ossama@uci.edu>
Diffstat (limited to 'TAO/tao/default_resource.h')
-rw-r--r--TAO/tao/default_resource.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/TAO/tao/default_resource.h b/TAO/tao/default_resource.h
index df9313a80bb..ad65f3dec05 100644
--- a/TAO/tao/default_resource.h
+++ b/TAO/tao/default_resource.h
@@ -96,6 +96,7 @@ public:
virtual int use_locked_data_blocks (void) const;
virtual TAO_Reactor_Registry *get_reactor_registry (void);
virtual ACE_Reactor *get_reactor (void);
+ virtual void reclaim_reactor (ACE_Reactor *);
virtual TAO_Acceptor_Registry *get_acceptor_registry (void);
virtual TAO_Connector_Registry *get_connector_registry (void);
virtual ACE_Allocator* input_cdr_dblock_allocator (void);
@@ -150,6 +151,17 @@ protected:
int priority_mapping_type_;
// The type of priority mapping class created by this factory.
+
+ int dynamically_allocated_reactor_;
+ // Flag that is set to 1 if the reactor obtained from the
+ // get_reactor() method is dynamically allocated. If this flag is
+ // set to 1, then the reclaim_reactor() method with call the delete
+ // operator on the given reactor. This flag is necessary to make
+ // sure that a reactor not allocated by the default resource factory
+ // is not reclaimed by the default resource factory. Such a
+ // situation can occur when a resource factory derived from the
+ // default one overrides the get_reactor() method but does not
+ // override the reclaim_reactor() method.
};
#if defined (__ACE_INLINE__)