summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authoralex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-04-17 00:48:12 +0000
committeralex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-04-17 00:48:12 +0000
commit11f7118c19f840deec84c9c1188221c9559ed7c8 (patch)
tree730ebcd8b638ca9eabfecc54852ad6f612947877 /examples
parent5994b52ed2e1c161b63ef94f5403b44d945ce15c (diff)
downloadATCD-11f7118c19f840deec84c9c1188221c9559ed7c8.tar.gz
Fixed to work on the WIN32 correctly. This can work only on WIN32
(combining Proactor with Reactor's event loop). So I have put a #if defined around the file.
Diffstat (limited to 'examples')
-rw-r--r--examples/Reactor/Proactor/test_multiple_loops.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/Reactor/Proactor/test_multiple_loops.cpp b/examples/Reactor/Proactor/test_multiple_loops.cpp
index 5b50ebacf57..ca6cd9ea43e 100644
--- a/examples/Reactor/Proactor/test_multiple_loops.cpp
+++ b/examples/Reactor/Proactor/test_multiple_loops.cpp
@@ -19,9 +19,10 @@
//
// ============================================================================
-#include "ace/Proactor.h"
#include "ace/Synch.h"
#include "ace/Task.h"
+#include "ace/Proactor.h"
+#include "ace/WIn32_Proactor.h"
ACE_RCSID(Proactor, test_multiple_loops, "$Id$")
@@ -95,9 +96,10 @@ int
main (int, char *[])
{
Timeout_Handler handler;
- ACE_Proactor proactor (0, 0, 1);
+ ACE_WIN32_Proactor win32_proactor (0, 1);
+ ACE_Proactor proactor (&win32_proactor, 0, 0);
- ACE_Reactor::instance ()->register_handler (&proactor);
+ ACE_Reactor::instance ()->register_handler (proactor.implementation ());
// Register a 2 second timer.
ACE_Time_Value foo_tv (2);