aboutsummaryrefslogtreecommitdiff
path: root/src/unix/linux.c
diff options
context:
space:
mode:
authorJameson Nash <vtjnash@gmail.com>2024-08-02 10:50:32 -0400
committerGitHub <noreply@github.com>2024-08-02 10:50:32 -0400
commit727ee7237ede117c539a64258bf82a1b36b9991e (patch)
tree24862f5d6e82de64231c3b4a6f59f9c159dacc32 /src/unix/linux.c
parent4e310d0f90af29e699e2dedad5fa0dcee181a7cc (diff)
downloadlibuv-727ee7237ede117c539a64258bf82a1b36b9991e.tar.gz
libuv-727ee7237ede117c539a64258bf82a1b36b9991e.zip
win,pipe: fix race with concurrent readers (#4470)
This fixes a race condition if multiple threads are reading from the same NamedPipe, which could previously lead to a deadlock situation. We also substantially improve performance now also, since the PeekFile call is unnecessary overhead with this change. This API was added in Windows Vista. Related to #4467, though doesn't address any of the problems there. I believe that someone could now implement uv__pipe_try_write using this same code pattern however.
Diffstat (limited to 'src/unix/linux.c')
0 files changed, 0 insertions, 0 deletions