summaryrefslogtreecommitdiff
path: root/rts/win32/ConsoleHandler.h
diff options
context:
space:
mode:
authorTamar Christina <tamar@zhox.com>2019-06-16 21:30:14 +0100
committerBen Gamari <ben@smart-cactus.org>2020-07-15 16:41:01 -0400
commit4bf542bf1cdf2fa468457fc0af21333478293476 (patch)
tree8378f0fa182d8e829e15fc5d102ba01aa8bd038e /rts/win32/ConsoleHandler.h
parent050da6dd42d0cb293c7fce4a5ccdeb5abe1aadb4 (diff)
downloadhaskell-4bf542bf1cdf2fa468457fc0af21333478293476.tar.gz
winio: Multiple refactorings and support changes.
Diffstat (limited to 'rts/win32/ConsoleHandler.h')
-rw-r--r--rts/win32/ConsoleHandler.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/rts/win32/ConsoleHandler.h b/rts/win32/ConsoleHandler.h
index 06af9dd0d0..bb7278abba 100644
--- a/rts/win32/ConsoleHandler.h
+++ b/rts/win32/ConsoleHandler.h
@@ -1,6 +1,8 @@
/*
* Console control handler support.
*
+ * NOTE: This is the MIO manager, only used for --io-manager=posix.
+ * For the WINIO manager see base in the GHC.Event modules.
*/
#pragma once
@@ -16,24 +18,24 @@
*/
#if !defined(THREADED_RTS)
-/*
+/*
* under THREADED_RTS, console events are passed to the IO manager
* thread, which starts up the handler. See ThrIOManager.c.
*/
/*
- * Function: signals_pending()
- *
+ * Function: signals_pending()
+ *
* Used by the RTS to check whether new signals have been 'recently' reported.
- * If so, the RTS arranges for the delivered signals to be handled by
- * de-queueing them from their table, running the associated Haskell
+ * If so, the RTS arranges for the delivered signals to be handled by
+ * de-queueing them from their table, running the associated Haskell
* signal handler.
*/
extern StgInt stg_pending_events;
#define signals_pending() ( stg_pending_events > 0)
-/*
+/*
* Function: anyUserHandlers()
*
* Used by the Scheduler to decide whether its worth its while to stick