summaryrefslogtreecommitdiff
path: root/rts/win32/ConsoleHandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'rts/win32/ConsoleHandler.h')
-rw-r--r--rts/win32/ConsoleHandler.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/rts/win32/ConsoleHandler.h b/rts/win32/ConsoleHandler.h
index b09adf71cb..33fa065733 100644
--- a/rts/win32/ConsoleHandler.h
+++ b/rts/win32/ConsoleHandler.h
@@ -9,9 +9,16 @@
* Console control handlers lets an application handle Ctrl+C, Ctrl+Break etc.
* in Haskell under Win32. Akin to the Unix signal SIGINT.
*
- * The API offered by ConsoleHandler.h is identical to that of the signal handling
- * code (which isn't supported under win32.) Unsurprisingly, the underlying impl
- * is derived from the signal handling code also.
+ * The API offered by ConsoleHandler.h is identical to that of the
+ * signal handling code (which isn't supported under win32.)
+ * Unsurprisingly, the underlying impl is derived from the signal
+ * handling code also.
+ */
+
+#if !defined(THREADED_RTS)
+/*
+ * under THREADED_RTS, console events are passed to the IO manager
+ * thread, which starts up the handler. See ThrIOManager.c.
*/
/*
@@ -60,4 +67,6 @@ extern void handleSignalsInThisThread(void);
*/
extern int rts_waitConsoleHandlerCompletion(void);
+#endif /* THREADED_RTS */
+
#endif /* __CONSOLEHANDLER_H__ */