summaryrefslogtreecommitdiff
path: root/rts
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-07-08 14:24:15 -0400
committerBen Gamari <ben@smart-cactus.org>2020-07-15 16:41:03 -0400
commit2092bc542516461eeb06d855dfbe9b04438767bc (patch)
treebc0188d30c453f0fb76b4e7d28f4f02802eda7c4 /rts
parent8b8405a0dd45c16ec305884cadda992327733621 (diff)
downloadhaskell-2092bc542516461eeb06d855dfbe9b04438767bc.tar.gz
winio: Minor comments/renamings
Diffstat (limited to 'rts')
-rw-r--r--rts/RtsSymbols.c2
-rw-r--r--rts/win32/AsyncWinIO.c4
-rw-r--r--rts/win32/AsyncWinIO.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/rts/RtsSymbols.c b/rts/RtsSymbols.c
index 9de31d78f3..6432cbdcdd 100644
--- a/rts/RtsSymbols.c
+++ b/rts/RtsSymbols.c
@@ -343,7 +343,7 @@
SymI_HasProto(unblockUserSignals)
#else
#define RTS_USER_SIGNALS_SYMBOLS \
- SymI_HasProto(registerNewIOCPHandle) \
+ SymI_HasProto(registerIOCPHandle) \
SymI_HasProto(getOverlappedEntries) \
SymI_HasProto(completeSynchronousRequest) \
SymI_HasProto(registerAlertableWait) \
diff --git a/rts/win32/AsyncWinIO.c b/rts/win32/AsyncWinIO.c
index b625dcaf0a..2af806b1c8 100644
--- a/rts/win32/AsyncWinIO.c
+++ b/rts/win32/AsyncWinIO.c
@@ -240,7 +240,7 @@ bool startupAsyncWinIO(void)
entries = calloc (sizeof (OVERLAPPED_ENTRY), num_callbacks);
/* Start the I/O manager before creating the worker thread to prevent a busy
- wait or spin-lock, this will call registerNewIOCPHandle allowing us to
+ wait or spin-lock, this will call registerIOCPHandle allowing us to
skip the initial un-alertable wait. */
ioManagerStart ();
@@ -288,7 +288,7 @@ void shutdownAsyncWinIO(bool wait_threads)
/* Register the I/O completetion port handle PORT that the I/O manager will be
monitoring. All handles are expected to be associated with this handle. */
-void registerNewIOCPHandle (HANDLE port)
+void registerIOCPHandle (HANDLE port)
{
AcquireSRWLockExclusive (&wio_runner_lock);
diff --git a/rts/win32/AsyncWinIO.h b/rts/win32/AsyncWinIO.h
index 8eefee5ab6..3ddf5de77a 100644
--- a/rts/win32/AsyncWinIO.h
+++ b/rts/win32/AsyncWinIO.h
@@ -17,7 +17,7 @@
extern bool startupAsyncWinIO(void);
extern void shutdownAsyncWinIO(bool wait_threads);
extern void awaitAsyncRequests(bool wait);
-extern void registerNewIOCPHandle (HANDLE port);
+extern void registerIOCPHandle (HANDLE port);
extern void registerAlertableWait (bool has_timeout, DWORD mssec, uint64_t num_req, bool service_pending);
extern OVERLAPPED_ENTRY* getOverlappedEntries (uint32_t *num);