summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/Event/Event_Channel.h
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-06-23 17:28:57 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-06-23 17:28:57 +0000
commitdfb4a4f34ec8b55efac8cf54699229d0f29eb69f (patch)
treeb13c4203d3b525a598e6e51c29d7837cbd7f8636 /TAO/orbsvcs/orbsvcs/Event/Event_Channel.h
parent71895a8b0c3e250aa251b1c29421d49269fd7a2f (diff)
downloadATCD-dfb4a4f34ec8b55efac8cf54699229d0f29eb69f.tar.gz
ChangeLogTag:Tue Jun 23 12:18:39 1998 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Event/Event_Channel.h')
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/Event_Channel.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Event/Event_Channel.h b/TAO/orbsvcs/orbsvcs/Event/Event_Channel.h
index 5978412552a..942e27319f9 100644
--- a/TAO/orbsvcs/orbsvcs/Event/Event_Channel.h
+++ b/TAO/orbsvcs/orbsvcs/Event/Event_Channel.h
@@ -177,9 +177,12 @@ public:
CONSUMER = 1, SUPPLIER = 2,
SHUTDOWN = CONSUMER | SUPPLIER };
- ACE_EventChannel (u_long type = ACE_DEFAULT_EVENT_CHANNEL_TYPE);
+ ACE_EventChannel (CORBA::Boolean activate_threads = CORBA::B_TRUE,
+ u_long type = ACE_DEFAULT_EVENT_CHANNEL_TYPE);
// Construction of the given <type>. Check the **_CHANNEL
// enumerations defined below.
+ // By default we activate the threads on construction, but it is
+ // possible to create the EC first and activate the threads later.
virtual ~ACE_EventChannel (void);
// Calls destroy.
@@ -222,6 +225,9 @@ public:
void report_disconnect (u_long);
// Consumer or supplier disconnected.
+ void activate (void);
+ // Activate the internal threads of the EC
+
void shutdown (void);
// Do not call this. The last module has shut down.
@@ -241,6 +247,8 @@ public:
// inform any gateways it has.
// TODO: currently we only support consumer gateways.
+ ACE_Task_Manager* task_manager (void) const;
+
private:
ACE_RTU_Manager *rtu_manager_;
// The RTU manager dude!
@@ -262,6 +270,11 @@ private:
Gateway_Set gwys_;
// Keep the set of Gateways, i.e. connections to peer EC.
+
+ ACE_Task_Manager* task_manager_;
+ // @@ TODO: change that class and object name.
+ // This object handles the threads related to timers, is a bad name,
+ // but this is not the opportunity to change it.
};
// ************************************************************