Skip to content

Commit

Permalink
std: use queue-based RwLock on Windows 7
Browse files Browse the repository at this point in the history
  • Loading branch information
joboet committed Apr 11, 2024
1 parent 8afee14 commit dbda4f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 50 deletions.
16 changes: 6 additions & 10 deletions library/std/src/sys/sync/rwlock/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,20 @@ cfg_if::cfg_if! {
))] {
mod futex;
pub use futex::RwLock;
} else if #[cfg(target_family = "unix")] {
} else if #[cfg(any(
target_family = "unix",
all(target_os = "windows", target_vendor = "win7"),
all(target_vendor = "fortanix", target_env = "sgx"),
target_os = "xous",
))] {
mod queue;
pub use queue::RwLock;
} else if #[cfg(all(target_os = "windows", target_vendor = "win7"))] {
mod windows7;
pub use windows7::RwLock;
} else if #[cfg(all(target_vendor = "fortanix", target_env = "sgx"))] {
mod sgx;
pub use sgx::RwLock;
} else if #[cfg(target_os = "solid_asp3")] {
mod solid;
pub use solid::RwLock;
} else if #[cfg(target_os = "teeos")] {
mod teeos;
pub use teeos::RwLock;
} else if #[cfg(target_os = "xous")] {
mod xous;
pub use xous::RwLock;
} else {
mod no_threads;
pub use no_threads::RwLock;
Expand Down
40 changes: 0 additions & 40 deletions library/std/src/sys/sync/rwlock/windows7.rs

This file was deleted.

0 comments on commit dbda4f9

Please sign in to comment.