Module rustc_data_structures::flock
source · Expand description
Simple file-locking apis for each OS.
This is not meant to be in the standard library, it does nothing with green/native threading. This is just a bare-bones enough solution for librustdoc, it is not production quality at all.
Modules§
- linux 🔒We use
flock
rather thanfcntl
on Linux, because WSL1 does not supportfcntl
-style advisory locks properly (rust-lang/rust#72157). For other Unix targets we still usefcntl
because it’s more portable thanflock
.