apache /
apr /
944bfb5d1b282ea5ccdf023f7341641343da5a16 Use manual reset events for OVERLAPPED I/O on Windows: I/O operations reset
provided event to non-signaled state automatically [1]. Using automatic reset
events is not recommended:
[[[
Functions such as ReadFile and WriteFile set this handle to the nonsignaled
state before they begin an I/O operation. When the operation has completed,
the handle is set to the signaled state.
Functions such as GetOverlappedResult and the synchronization wait functions
reset auto-reset events to the nonsignaled state. Therefore, you should use a
manual reset event; if you use an auto-reset event, your application can stop
responding if you wait for the operation to complete and then call
GetOverlappedResult with the bWait parameter set to TRUE.
]]]
[1] https://docs.microsoft.com/en-gb/windows/desktop/api/minwinbase/ns-minwinbase-_overlapped
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1860110 13f79535-47bb-0310-9956-ffa450edef68
2 files changed