Skip to content

Commit

Permalink
Disable generic spin lock based thread parker in libstd
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed Apr 1, 2019
1 parent eededc8 commit 17d36f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ cfg_if! {
} else if #[cfg(all(any(feature = "i-am-libstd", feature = "nightly"), target_os = "cloudabi"))] {
#[path = "thread_parker/cloudabi.rs"]
mod thread_parker;
} else if #[cfg(all(feature = "i-am-libstd", not(target_arch = "wasm32")))] {
compile_error!("Not allowed to fall back to generic spin lock based thread parker");
} else {
#[path = "thread_parker/generic.rs"]
mod thread_parker;
Expand Down

0 comments on commit 17d36f6

Please sign in to comment.