Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions library/std/src/sys/sync/condvar/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
cfg_select! {
all(target_os = "emscripten", not(target_feature = "atomics")) => {
mod no_threads;
pub use no_threads::Condvar;
}
any(
all(target_os = "windows", not(target_vendor="win7")),
target_os = "linux",
Expand Down
4 changes: 4 additions & 0 deletions library/std/src/sys/sync/mutex/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
cfg_select! {
all(target_os = "emscripten", not(target_feature = "atomics")) => {
mod no_threads;
pub use no_threads::Mutex;
}
any(
all(target_os = "windows", not(target_vendor = "win7")),
target_os = "linux",
Expand Down
4 changes: 4 additions & 0 deletions library/std/src/sys/sync/once/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
// should help the fast path on call sites.

cfg_select! {
all(target_os = "emscripten", not(target_feature = "atomics")) => {
mod no_threads;
pub use no_threads::{Once, OnceState};
}
any(
all(target_os = "windows", not(target_vendor="win7")),
target_os = "linux",
Expand Down
4 changes: 4 additions & 0 deletions library/std/src/sys/sync/rwlock/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
cfg_select! {
all(target_os = "emscripten", not(target_feature = "atomics")) => {
mod no_threads;
pub use no_threads::RwLock;
}
any(
all(target_os = "windows", not(target_vendor = "win7")),
target_os = "linux",
Expand Down
4 changes: 4 additions & 0 deletions library/std/src/sys/sync/thread_parking/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
cfg_select! {
all(target_os = "emscripten", not(target_feature = "atomics")) => {
mod unsupported;
pub use unsupported::Parker;
}
any(
all(target_os = "windows", not(target_vendor = "win7")),
target_os = "linux",
Expand Down
Loading