Enhance comments for overlapped pipe handling

Add comments to clarify IOCP association behavior.
This commit is contained in:
Jameson Nash 2026-03-24 10:30:49 -04:00 committed by GitHub
parent f5b4b0d825
commit f4cd96ba0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -543,7 +543,9 @@ static int uv__set_pipe_handle(uv_loop_t* loop,
handle->pipe.conn.readfile_thread_handle = NULL; handle->pipe.conn.readfile_thread_handle = NULL;
InitializeCriticalSection(&handle->pipe.conn.readfile_thread_lock); InitializeCriticalSection(&handle->pipe.conn.readfile_thread_lock);
} else { } else {
/* Overlapped pipe. Try to associate with IOCP. */ /* Overlapped pipe. Try to associate with IOCP.
* Will set compatibility flags internally if this fails
* (because some other process already has activated IOCP). */
uv__pipe_attach_iocp(pipeHandle, loop->iocp, handle); uv__pipe_attach_iocp(pipeHandle, loop->iocp, handle);
} }