diff options
author | alex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-04-17 00:48:12 +0000 |
---|---|---|
committer | alex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-04-17 00:48:12 +0000 |
commit | e9958cdd8ac909234222e09198b7a4cf7a74fa42 (patch) | |
tree | 730ebcd8b638ca9eabfecc54852ad6f612947877 /examples/Reactor | |
parent | efd6d01ec9f0f41f03cf1faf16a2b6d5b59cd9d9 (diff) | |
download | ATCD-e9958cdd8ac909234222e09198b7a4cf7a74fa42.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/Reactor')
-rw-r--r-- | examples/Reactor/Proactor/test_multiple_loops.cpp | 8 |
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); |