summaryrefslogtreecommitdiff
path: root/std/node/_fs/_fs_exists.ts
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2021-01-26 10:55:04 +0100
committerGitHub <noreply@github.com>2021-01-26 10:55:04 +0100
commit2828690fc7bb510c3248dda7b1cda8793e789ca6 (patch)
tree96ca85ab8ae9a2d60679729cc161539c3900a386 /std/node/_fs/_fs_exists.ts
parent2823c02e434577393cf0575d4ad9116da1076b17 (diff)
fix(lsp): fix deadlocks, use one big mutex (#9271)
The LSP code had numerous places where competing threads could take out out locks in different orders, making it very prone to deadlocks. This commit sidesteps the entire issue by switching to a single lock. The above is a little white lie: the Sources struct still uses a mutex internally to avoid having to boil the ocean (because being honest about what it does involves changing all its methods to `&mut self` but that ripples out extensively...) I'll save that one for another day.
Diffstat (limited to 'std/node/_fs/_fs_exists.ts')
0 files changed, 0 insertions, 0 deletions