Skip to content
Snippets Groups Projects
Commit 424eb8db authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

I/O [NT]: Use read-write locking for fd_busy and fd_to_{socket,handle()}.

A negative value in fd_busy now means an exclusive lock (the only kind
that existed before now), 0 no lock, and a positive value shared lock(s).

Fixes issues with concurrent accesses to the same fd from multiple threads.

Potential fix for #10005 where one thread was performing a blocking read
from a socket and another attempted to use it in the write-direction.
parent 06df675c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment