summaryrefslogtreecommitdiff
path: root/examples/Timer_Queue
diff options
context:
space:
mode:
authornw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-10-12 08:44:12 +0000
committernw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-10-12 08:44:12 +0000
commite79a88407e0c8ea33d7479df3366423c446a4ffa (patch)
treeca746c969f25941cd715f58d68a2f09212ca42b5 /examples/Timer_Queue
parent5b6af167eba1394aee2a66bd5a4ecbcc0dece9a8 (diff)
downloadATCD-e79a88407e0c8ea33d7479df3366423c446a4ffa.tar.gz
*** empty log message ***
Diffstat (limited to 'examples/Timer_Queue')
-rw-r--r--examples/Timer_Queue/Reactor_Timer_Queue_Test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/Timer_Queue/Reactor_Timer_Queue_Test.cpp b/examples/Timer_Queue/Reactor_Timer_Queue_Test.cpp
index 6e0f1e9e277..5a4dcc569dc 100644
--- a/examples/Timer_Queue/Reactor_Timer_Queue_Test.cpp
+++ b/examples/Timer_Queue/Reactor_Timer_Queue_Test.cpp
@@ -125,7 +125,7 @@ public:
case 4: // Shutdown
this->done_ = 1;
ACE_DEBUG ((LM_DEBUG, "Shutting down event loop\n"));
- return 0;
+ return -1;
default: // Huh?
ACE_DEBUG ((LM_DEBUG, "Got string (%d): %s\n", n, buffer));
break;
@@ -156,8 +156,8 @@ main (int, char *[])
// This is the stdin handler.
Input_Handler *thandler = new Input_Handler (&private_queue);
- REACTOR->register_handler (ACE_STDIN, thandler,
- ACE_Event_Handler::READ_MASK);
+ ACE::register_stdin_handler (thandler, REACTOR,
+ ACE_Thread_Manager::instance ());
::usage_prompt ();