summaryrefslogtreecommitdiff
path: root/ACE/tests/Reactor_Exceptions_Test.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2007-09-21 09:33:03 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2007-09-21 09:33:03 +0000
commitdb760f063767368ac1f862118f7d61938b184ce6 (patch)
tree11ad85a892a6eed8e07976dd3b494da20d09d899 /ACE/tests/Reactor_Exceptions_Test.cpp
parentf36139116f64d8104a0a20e20de4028e6442cd16 (diff)
downloadATCD-db760f063767368ac1f862118f7d61938b184ce6.tar.gz
Fri Sep 21 09:32:15 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ACE/tests/Reactor_Exceptions_Test.cpp')
-rw-r--r--ACE/tests/Reactor_Exceptions_Test.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/ACE/tests/Reactor_Exceptions_Test.cpp b/ACE/tests/Reactor_Exceptions_Test.cpp
index ad39ee0cf09..45b8d5d9322 100644
--- a/ACE/tests/Reactor_Exceptions_Test.cpp
+++ b/ACE/tests/Reactor_Exceptions_Test.cpp
@@ -22,6 +22,7 @@
#include "ace/SOCK_Dgram.h"
#include "ace/INET_Addr.h"
#include "ace/Thread_Manager.h"
+#include "ace/Select_Reactor.h"
ACE_RCSID(tests, Reactor_Exceptions_Test, "$Id$")
@@ -96,7 +97,7 @@ My_Handler::handle_input (ACE_HANDLE)
return 0;
}
-class My_Reactor : public ACE_Reactor
+class My_Reactor : public ACE_Select_Reactor
{
public:
virtual int handle_events (ACE_Time_Value *max_wait_time)
@@ -114,7 +115,7 @@ public:
{
# endif /* defined (ACE_WIN32 && __BORLANDC__) */
- ret = ACE_Reactor::handle_events (max_wait_time);
+ ret = ACE_Select_Reactor::handle_events (max_wait_time);
# if defined (ACE_WIN32) && defined (__BORLANDC__)
}
@@ -174,7 +175,7 @@ run_main (int argc, ACE_TCHAR *argv[])
ACE_INET_Addr local_addr (port);
ACE_INET_Addr remote_addr (port, ACE_LOCALHOST, PF_INET);
- My_Reactor reactor;
+ ACE_Reactor reactor (new My_Reactor, true);
ACE_Reactor::instance (&reactor);
ACE_Thread_Manager *thr_mgr = ACE_Thread_Manager::instance ();