summaryrefslogtreecommitdiff
path: root/rts/win32
diff options
context:
space:
mode:
authorDuncan Coutts <duncan@well-typed.com>2021-01-03 18:44:19 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-01-25 05:11:14 -0500
commit34a8a0e4cf188a30d2b4b65909f24185c80d071e (patch)
treea8c25a0f4112f0dbe1a7a9969be577071d252094 /rts/win32
parente3564e3893c90dc20aa1949cdb85f41741faf895 (diff)
downloadhaskell-34a8a0e4cf188a30d2b4b65909f24185c80d071e.tar.gz
Remove ioManager{Start,Die,Wakeup} from IOManager.h
They are not part of the IOManager interface used within the rest of the RTS. They are the part of the interface of specific I/O manager implementations. They are no longer called directly elsewhere in the RTS, and are now only called by the dispatch functions in IOManager.c
Diffstat (limited to 'rts/win32')
-rw-r--r--rts/win32/AsyncWinIO.c1
-rw-r--r--rts/win32/ThrIOManager.c1
-rw-r--r--rts/win32/ThrIOManager.h18
3 files changed, 20 insertions, 0 deletions
diff --git a/rts/win32/AsyncWinIO.c b/rts/win32/AsyncWinIO.c
index f6921fd4e5..0c0b45e60f 100644
--- a/rts/win32/AsyncWinIO.c
+++ b/rts/win32/AsyncWinIO.c
@@ -10,6 +10,7 @@
#include "Rts.h"
#include <rts/IOInterface.h>
+#include "ThrIOManager.h"
#include "AsyncWinIO.h"
#include "Prelude.h"
#include "Capability.h"
diff --git a/rts/win32/ThrIOManager.c b/rts/win32/ThrIOManager.c
index 039d62fad3..b29bf1072e 100644
--- a/rts/win32/ThrIOManager.c
+++ b/rts/win32/ThrIOManager.c
@@ -9,6 +9,7 @@
* ---------------------------------------------------------------------------*/
#include "Rts.h"
+#include "ThrIOManager.h"
#include "MIOManager.h"
#include "rts\OSThreads.h"
#include "Prelude.h"
diff --git a/rts/win32/ThrIOManager.h b/rts/win32/ThrIOManager.h
new file mode 100644
index 0000000000..a67bdde364
--- /dev/null
+++ b/rts/win32/ThrIOManager.h
@@ -0,0 +1,18 @@
+/* -----------------------------------------------------------------------------
+ *
+ * (c) The GHC Team, 1998-2006
+ *
+ * The IO manager thread in THREADED_RTS.
+ * See also libraries/base/GHC/Conc.hs.
+ *
+ * NOTE: This is used by both MIO and WINIO
+ * ---------------------------------------------------------------------------*/
+
+#pragma once
+
+/* Communicating with the IO manager thread (see GHC.Conc).
+ */
+void ioManagerWakeup (void);
+void ioManagerDie (void);
+void ioManagerStart (void);
+