diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-04-18 05:33:26 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-04-18 05:33:26 +0000 |
commit | 9b455d7b081cc79e451d9ae027356b5f9d2a2314 (patch) | |
tree | b42306b8e23526f9ce68c96f5ff0e765a3774039 /tests | |
parent | c8ddc3bda784670bc1c78f9451f3acecd29a86df (diff) | |
download | ATCD-9b455d7b081cc79e451d9ae027356b5f9d2a2314.tar.gz |
Sun Apr 18 00:26:28 1999 Irfan Pyarali <irfan@cs.wustl.edu>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Notify_Performance_Test.cpp | 5 | ||||
-rw-r--r-- | tests/Priority_Reactor_Test.cpp | 9 | ||||
-rw-r--r-- | tests/Reactor_Performance_Test.cpp | 5 |
3 files changed, 14 insertions, 5 deletions
diff --git a/tests/Notify_Performance_Test.cpp b/tests/Notify_Performance_Test.cpp index f96947337a9..6083846ee76 100644 --- a/tests/Notify_Performance_Test.cpp +++ b/tests/Notify_Performance_Test.cpp @@ -178,7 +178,10 @@ main (int argc, ASYS_TCHAR *argv[]) // If we are using other that the default implementation, we must // clean up. if (opt_select_reactor || opt_wfmo_reactor) - impl = auto_ptr <ACE_Reactor_Impl> (ACE_Reactor::instance ()->implementation ()); + { + auto_ptr<ACE_Reactor_Impl> auto_impl (ACE_Reactor::instance ()->implementation ()); + impl = auto_impl; + } // Callback object Handler handler; diff --git a/tests/Priority_Reactor_Test.cpp b/tests/Priority_Reactor_Test.cpp index ff6c3f5a83d..16e7e96e950 100644 --- a/tests/Priority_Reactor_Test.cpp +++ b/tests/Priority_Reactor_Test.cpp @@ -181,7 +181,7 @@ Write_Handler::svc (void) static void * client (void *arg) { - ACE_INET_Addr *connection_addr = + ACE_INET_Addr *connection_addr = ACE_reinterpret_cast (ACE_INET_Addr *, arg); ACE_DEBUG ((LM_DEBUG, "(%P|%t) running client\n")); @@ -278,10 +278,13 @@ main (int argc, char *argv[]) { ACE_Select_Reactor *impl_ptr; ACE_NEW_RETURN (impl_ptr, ACE_Priority_Reactor, -1); - impl = auto_ptr<ACE_Select_Reactor> (impl_ptr); + auto_ptr<ACE_Select_Reactor> auto_impl (impl_ptr); + impl = auto_impl; + ACE_Reactor *reactor_ptr; ACE_NEW_RETURN (reactor_ptr, ACE_Reactor (impl_ptr), -1); - reactor = auto_ptr<ACE_Reactor> (reactor_ptr); + auto_ptr<ACE_Reactor> auto_reactor (reactor_ptr); + reactor = auto_reactor; ACE_Reactor::instance (reactor_ptr); } diff --git a/tests/Reactor_Performance_Test.cpp b/tests/Reactor_Performance_Test.cpp index e17aab59ea6..63436c70624 100644 --- a/tests/Reactor_Performance_Test.cpp +++ b/tests/Reactor_Performance_Test.cpp @@ -349,7 +349,10 @@ main (int argc, ASYS_TCHAR *argv[]) // If we are using other that the default implementation, we must // clean up. if (opt_select_reactor || opt_wfmo_reactor) - impl = auto_ptr<ACE_Reactor_Impl> (ACE_Reactor::instance ()->implementation ()); + { + auto_ptr<ACE_Reactor_Impl> auto_impl (ACE_Reactor::instance ()->implementation ()); + impl = auto_impl; + } Read_Handler::set_countdown (opt_nconnections); |