summaryrefslogtreecommitdiff
path: root/rts/Capability.c
diff options
context:
space:
mode:
authorDuncan Coutts <duncan@well-typed.com>2020-12-29 00:11:07 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-01-25 05:11:14 -0500
commit455ad48bdfb5d47d666d23db81ad10c855dab078 (patch)
tree633fab12c0542b84e383ebe96cafa51c7a820a71 /rts/Capability.c
parent54946e4f4bed9b8146db9235794d1698c9b7ad50 (diff)
downloadhaskell-455ad48bdfb5d47d666d23db81ad10c855dab078.tar.gz
Move setIOManagerControlFd from Capability.c to IOManager.c
This is a better home for it. It is not really an aspect of capabilities. It is specific to one of the I/O manager impls.
Diffstat (limited to 'rts/Capability.c')
-rw-r--r--rts/Capability.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/rts/Capability.c b/rts/Capability.c
index 63c01ac348..a77112650a 100644
--- a/rts/Capability.c
+++ b/rts/Capability.c
@@ -30,10 +30,6 @@
#include "sm/OSMem.h"
#include "sm/BlockAlloc.h" // for countBlocks()
-#if !defined(mingw32_HOST_OS)
-#include "rts/IOInterface.h" // for setIOManagerControlFd()
-#endif
-
#include <string.h>
// one global capability, this is the Capability for non-threaded
@@ -1363,16 +1359,3 @@ bool checkSparkCountInvariant (void)
}
#endif
-
-#if !defined(mingw32_HOST_OS)
-void
-setIOManagerControlFd(uint32_t cap_no USED_IF_THREADS, int fd USED_IF_THREADS) {
-#if defined(THREADED_RTS)
- if (cap_no < n_capabilities) {
- RELAXED_STORE(&capabilities[cap_no]->io_manager_control_wr_fd, fd);
- } else {
- errorBelch("warning: setIOManagerControlFd called with illegal capability number.");
- }
-#endif
-}
-#endif