Skip to content

Commit dbda4f9

Browse files
committed
std: use queue-based RwLock on Windows 7
1 parent 8afee14 commit dbda4f9

File tree

2 files changed

+6
-50
lines changed

2 files changed

+6
-50
lines changed

library/std/src/sys/sync/rwlock/mod.rs

+6-10
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,20 @@ cfg_if::cfg_if! {
1212
))] {
1313
mod futex;
1414
pub use futex::RwLock;
15-
} else if #[cfg(target_family = "unix")] {
15+
} else if #[cfg(any(
16+
target_family = "unix",
17+
all(target_os = "windows", target_vendor = "win7"),
18+
all(target_vendor = "fortanix", target_env = "sgx"),
19+
target_os = "xous",
20+
))] {
1621
mod queue;
1722
pub use queue::RwLock;
18-
} else if #[cfg(all(target_os = "windows", target_vendor = "win7"))] {
19-
mod windows7;
20-
pub use windows7::RwLock;
21-
} else if #[cfg(all(target_vendor = "fortanix", target_env = "sgx"))] {
22-
mod sgx;
23-
pub use sgx::RwLock;
2423
} else if #[cfg(target_os = "solid_asp3")] {
2524
mod solid;
2625
pub use solid::RwLock;
2726
} else if #[cfg(target_os = "teeos")] {
2827
mod teeos;
2928
pub use teeos::RwLock;
30-
} else if #[cfg(target_os = "xous")] {
31-
mod xous;
32-
pub use xous::RwLock;
3329
} else {
3430
mod no_threads;
3531
pub use no_threads::RwLock;

library/std/src/sys/sync/rwlock/windows7.rs

-40
This file was deleted.

0 commit comments

Comments
 (0)