spin_loop/
lib.rs

1#![no_std]
2
3#[cfg(not(target_os = "none"))]
4extern crate std;
5
6pub fn spin() {
7    #[cfg(target_os = "none")]
8    core::hint::spin_loop();
9    #[cfg(not(target_os = "none"))]
10    std::thread::yield_now();
11}