summaryrefslogtreecommitdiff
path: root/TAO
diff options
context:
space:
mode:
authorpradeep <pradeep@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-11-07 04:23:47 +0000
committerpradeep <pradeep@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-11-07 04:23:47 +0000
commitd7419a847d153ec4a2323b9ab6258ddcb3b0a815 (patch)
treef223c53e3be658122251ca5e6324bf7ade05cca0 /TAO
parent09f54d7adad0316255577fe81fabbf8f0953c836 (diff)
downloadATCD-d7419a847d153ec4a2323b9ab6258ddcb3b0a815.tar.gz
*** empty log message ***
Diffstat (limited to 'TAO')
-rw-r--r--TAO/examples/Event_Comm/Consumer_Input_Handler.cpp2
-rw-r--r--TAO/examples/Event_Comm/Consumer_Input_Handler.h7
-rw-r--r--TAO/examples/Event_Comm/Supplier_Input_Handler.cpp6
-rw-r--r--TAO/examples/Event_Comm/Supplier_Input_Handler.h9
4 files changed, 13 insertions, 11 deletions
diff --git a/TAO/examples/Event_Comm/Consumer_Input_Handler.cpp b/TAO/examples/Event_Comm/Consumer_Input_Handler.cpp
index ff24597e80a..e0da5b9d714 100644
--- a/TAO/examples/Event_Comm/Consumer_Input_Handler.cpp
+++ b/TAO/examples/Event_Comm/Consumer_Input_Handler.cpp
@@ -31,7 +31,7 @@ Consumer_Input_Handler::consumer_initiated_shutdown (int c)
}
int
-Consumer_Input_Handler::handle_close (void)
+Consumer_Input_Handler::handle_close (ACE_HANDLE, ACE_Reactor_Mask)
{
ACE_DEBUG ((LM_DEBUG,
"closing down Consumer::Input_Handler\n"));
diff --git a/TAO/examples/Event_Comm/Consumer_Input_Handler.h b/TAO/examples/Event_Comm/Consumer_Input_Handler.h
index a16a34813d5..55b95c8fd42 100644
--- a/TAO/examples/Event_Comm/Consumer_Input_Handler.h
+++ b/TAO/examples/Event_Comm/Consumer_Input_Handler.h
@@ -26,7 +26,7 @@
// Forward declaration.
class Consumer_Handler;
-class Consumer_Input_Handler : public ACE_Event_Handler
+class Consumer_Input_Handler : public ACE_Event_Handler
{
// = TITLE
// Handles input events generated from a keyboard.
@@ -43,14 +43,15 @@ public:
~Consumer_Input_Handler (void);
// Destructor.
- int initialize (Consumer_Handler *);
+ int initialize (Consumer_Handler *);
// registers the input event handler.
// returns 0 on success, -1 on error.
virtual int handle_input (ACE_HANDLE);
// Dispatch the callback when events occur.
- virtual int handle_close (void);
+ virtual int handle_close (ACE_HANDLE = ACE_INVALID_HANDLE,
+ ACE_Reactor_Mask = ACE_Event_Handler::NULL_MASK);
// Close down the handler.
int consumer_initiated_shutdown (void);
diff --git a/TAO/examples/Event_Comm/Supplier_Input_Handler.cpp b/TAO/examples/Event_Comm/Supplier_Input_Handler.cpp
index ad8793474e3..be7245f3dce 100644
--- a/TAO/examples/Event_Comm/Supplier_Input_Handler.cpp
+++ b/TAO/examples/Event_Comm/Supplier_Input_Handler.cpp
@@ -20,7 +20,7 @@ Supplier_Input_Handler::~Supplier_Input_Handler (void)
}
int
-Supplier_Input_Handler::handle_close (void)
+Supplier_Input_Handler::handle_close (ACE_HANDLE, ACE_Reactor_Mask)
{
ACE_DEBUG ((LM_DEBUG,
"closing down Supplier::Supplier_Input_Handler\n"));
@@ -37,7 +37,7 @@ Supplier_Input_Handler::handle_close (void)
}
int
-Supplier_Input_Handler::initialize (Notifier_Handler *notifier)
+Supplier_Input_Handler::initialize (Notifier_Handler *notifier)
{
notifier_ = notifier;
// Register our <Input_Handler> to handle STDIN events, which will
@@ -52,7 +52,7 @@ Supplier_Input_Handler::initialize (Notifier_Handler *notifier)
"register_stdin_handler"),
-1);
-
+
return 0;
}
diff --git a/TAO/examples/Event_Comm/Supplier_Input_Handler.h b/TAO/examples/Event_Comm/Supplier_Input_Handler.h
index e509f5e162b..6f9af949f80 100644
--- a/TAO/examples/Event_Comm/Supplier_Input_Handler.h
+++ b/TAO/examples/Event_Comm/Supplier_Input_Handler.h
@@ -30,7 +30,7 @@
// Forward declaration.
class Notifier_Handler;
-class Supplier_Input_Handler : public ACE_Event_Handler
+class Supplier_Input_Handler : public ACE_Event_Handler
{
// = TITLE
// Handles input events generated from a keyboard.
@@ -47,13 +47,14 @@ public:
~Supplier_Input_Handler (void);
// Destructor.
- int initialize (Notifier_Handler *);
- // Initialization.
+ int initialize (Notifier_Handler *);
+ // Initialization.
virtual int handle_input (ACE_HANDLE);
// Frame input events and notify <Consumers>.
- virtual int handle_close (void);
+ virtual int handle_close (ACE_HANDLE = ACE_INVALID_HANDLE,
+ ACE_Reactor_Mask = ACE_Event_Handler::NULL_MASK);
// Close down the handler.
protected: