diff options
author | Ben Gamari <ben@smart-cactus.org> | 2020-07-08 14:24:15 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2020-07-15 16:41:03 -0400 |
commit | 2092bc542516461eeb06d855dfbe9b04438767bc (patch) | |
tree | bc0188d30c453f0fb76b4e7d28f4f02802eda7c4 /rts/win32 | |
parent | 8b8405a0dd45c16ec305884cadda992327733621 (diff) | |
download | haskell-2092bc542516461eeb06d855dfbe9b04438767bc.tar.gz |
winio: Minor comments/renamings
Diffstat (limited to 'rts/win32')
-rw-r--r-- | rts/win32/AsyncWinIO.c | 4 | ||||
-rw-r--r-- | rts/win32/AsyncWinIO.h | 2 |
2 files changed, 3 insertions, 3 deletions
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); |