summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorIvan Zhakov <ivan@apache.org>2019-05-27 07:27:59 +0000
committerIvan Zhakov <ivan@apache.org>2019-05-27 07:27:59 +0000
commit944bfb5d1b282ea5ccdf023f7341641343da5a16 (patch)
tree921876e93a219a1eff6174d1f1b7716cdf13e64a /CMakeLists.txt
parentcc1441276000e5bb8bfc116f505f69361c39a357 (diff)
downloadapr-944bfb5d1b282ea5ccdf023f7341641343da5a16.tar.gz
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
Diffstat (limited to 'CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions