summaryrefslogtreecommitdiff
path: root/ace/Reactor.h
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-09-16 04:09:27 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-09-16 04:09:27 +0000
commit4cef9339ef885bbbf2de3e47092e692af18c9856 (patch)
tree805db1e1ded3a3353344341da990abcc5b4ffe6a /ace/Reactor.h
parent39887bf2410160699e157aef475147d04af7456e (diff)
downloadATCD-4cef9339ef885bbbf2de3e47092e692af18c9856.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Reactor.h')
-rw-r--r--ace/Reactor.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/ace/Reactor.h b/ace/Reactor.h
index 93d2996e4c0..926140586a5 100644
--- a/ace/Reactor.h
+++ b/ace/Reactor.h
@@ -146,13 +146,24 @@ public:
// Register <event_handler> with <mask>. The I/O handle is provided
// through the <io_handle> parameter.
+#if defined (ACE_WIN32)
+
+ // Originally this interface was available for all platforms, but
+ // because ACE_HANDLE is an int on non-Win32 platforms, compilers
+ // are not able to tell the difference between
+ // register_handler(ACE_Event_Handler*,ACE_Reactor_Mask) and
+ // register_handler(ACE_Event_Handler*,ACE_HANDLE). Therefore, we
+ // have restricted this method to Win32 only.
+
virtual int register_handler (ACE_Event_Handler *event_handler,
ACE_HANDLE event_handle = ACE_INVALID_HANDLE);
// Register an <event_handler> that will be notified when
// <event_handle> is signaled. Since no event mask is passed
// through this interface, it is assumed that the <event_handle>
// being passed in is an event handle and not an I/O handle.
-
+
+#endif /* ACE_WIN32 */
+
virtual int register_handler (ACE_HANDLE event_handle,
ACE_HANDLE io_handle,
ACE_Event_Handler *event_handler,