]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_data_structures/src/flock.rs
Rollup merge of #94145 - ssomers:binary_heap_tests, r=jyn514
[rust.git] / compiler / rustc_data_structures / src / flock.rs
1 //! Simple file-locking apis for each OS.
2 //!
3 //! This is not meant to be in the standard library, it does nothing with
4 //! green/native threading. This is just a bare-bones enough solution for
5 //! librustdoc, it is not production quality at all.
6
7 #![allow(non_camel_case_types)]
8 #![allow(nonstandard_style)]
9
10 cfg_if! {
11     if #[cfg(target_os = "linux")] {
12         mod linux;
13         use linux as imp;
14     } else if #[cfg(unix)] {
15         mod unix;
16         use unix as imp;
17     } else if #[cfg(windows)] {
18         mod windows;
19         use windows as imp;
20     } else {
21         mod unsupported;
22         use unsupported as imp;
23     }
24 }
25
26 pub use imp::Lock;