summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-09-08 19:13:34 +0000
committernw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-09-08 19:13:34 +0000
commitf9460addfe86ffb849e3b2aeeb5d20718bb5e78a (patch)
tree20d069c2b1ec988a8d7b3d12905b693aacd591df
parent90737e834b1c90cbdcf8d6f7e20c8de27f95b444 (diff)
downloadATCD-f9460addfe86ffb849e3b2aeeb5d20718bb5e78a.tar.gz
(register_stdin_handler): Removed the use of ACE_Stdin_Args cause we no longer need to pass in
Thread_Manager into (read_adapter.) (read_adapter): As stated above.
-rw-r--r--ace/ACE.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/ace/ACE.cpp b/ace/ACE.cpp
index 6452a1ce878..c061180a7e4 100644
--- a/ace/ACE.cpp
+++ b/ace/ACE.cpp
@@ -108,11 +108,7 @@ ACE::register_stdin_handler (ACE_Event_Handler *eh,
#if defined (ACE_WIN32)
ACE_UNUSED_ARG (reactor);
- ACE_Stdin_Args *args = 0;
- ACE_NEW_RETURN (args, ACE_Stdin_Args, -1);
- args->handler_ = eh;
- args->thr_mgr_ = thr_mgr;
- return thr_mgr->spawn (&ACE::read_adapter, args, flags);
+ return thr_mgr->spawn (&ACE::read_adapter, (void *) eh, flags);
#else
// Keep compilers happy.
ACE_UNUSED_ARG (flags);
@@ -133,10 +129,7 @@ ACE::register_stdin_handler (ACE_Event_Handler *eh,
void *
ACE::read_adapter (void *args)
{
- ACE_Stdin_Args *stdin_adapter_args = (ACE_Stdin_Args *) args;
- ACE_Thread_Control tc (stdin_adapter_args->thr_mgr_);
-
- ACE_Event_Handler *this_ptr = stdin_adapter_args->handler_;
+ ACE_Event_Handler *this_ptr = (ACE_Event_Handler *) args;
ACE_HANDLE handle = ACE_STDIN;
while (this_ptr->handle_input (handle) != -1)
@@ -144,7 +137,6 @@ ACE::read_adapter (void *args)
this_ptr->handle_close (handle, ACE_Event_Handler::READ_MASK);
- delete stdin_adapter_args;
return 0;
}