summaryrefslogtreecommitdiff
path: root/rts/win32
diff options
context:
space:
mode:
authorTamar Christina <tamar@zhox.com>2020-10-29 20:27:20 +0000
committerBen Gamari <ben@smart-cactus.org>2020-11-09 11:11:52 -0500
commited1699b29f8682b275813a20e7d8dc80531f5eb0 (patch)
tree0165dd8a566b0f60101df8d238900304d1f31a40 /rts/win32
parentbba8f79c7e933c312ca251469b99d0ac99954e16 (diff)
downloadhaskell-ed1699b29f8682b275813a20e7d8dc80531f5eb0.tar.gz
winio: Fix unused variables warnings
(cherry picked from commit cb1f755c6fb77f140aee11fdc7b4da04dd5dcd02)
Diffstat (limited to 'rts/win32')
-rw-r--r--rts/win32/AsyncWinIO.c9
-rw-r--r--rts/win32/AsyncWinIO.h2
2 files changed, 2 insertions, 9 deletions
diff --git a/rts/win32/AsyncWinIO.c b/rts/win32/AsyncWinIO.c
index 2af806b1c8..56f804e97b 100644
--- a/rts/win32/AsyncWinIO.c
+++ b/rts/win32/AsyncWinIO.c
@@ -325,17 +325,10 @@ void completeSynchronousRequest (void)
* MSSEC is the maximum amount of time in milliseconds that an alertable wait
should be done for before the haskell side requested to be notified of progress.
* NUM_REQ is the total overall number of outstanding I/O requests.
- * pending_service indicates that there might be still a outstanding service
- request queued and therefore we shouldn't unblock the runner quite yet.
-
- `pending_service` is needed in case we cancel an IO operation. We don't want this
- to result in two processRemoteCompletion threads being queued. As this is both harder
- to reason about and bad for performance. So we only reset outstanding_service_requests
- if no service is pending.
*/
-void registerAlertableWait (bool has_timeout, DWORD mssec, uint64_t num_req, bool pending_service)
+void registerAlertableWait (bool has_timeout, DWORD mssec)
{
ASSERT(completionPortHandle != INVALID_HANDLE_VALUE);
AcquireSRWLockExclusive (&wio_runner_lock);
diff --git a/rts/win32/AsyncWinIO.h b/rts/win32/AsyncWinIO.h
index 3ddf5de77a..145fc86257 100644
--- a/rts/win32/AsyncWinIO.h
+++ b/rts/win32/AsyncWinIO.h
@@ -18,7 +18,7 @@ extern bool startupAsyncWinIO(void);
extern void shutdownAsyncWinIO(bool wait_threads);
extern void awaitAsyncRequests(bool wait);
extern void registerIOCPHandle (HANDLE port);
-extern void registerAlertableWait (bool has_timeout, DWORD mssec, uint64_t num_req, bool service_pending);
+extern void registerAlertableWait (bool has_timeout, DWORD mssec);
extern OVERLAPPED_ENTRY* getOverlappedEntries (uint32_t *num);
extern void completeSynchronousRequest (void);