This commit is contained in:
jtnunley 2022-08-28 15:24:37 -07:00
parent 74c5a86fe3
commit 3a2780c166
1 changed files with 5 additions and 5 deletions

View File

@ -1,12 +1,12 @@
//! `futures::task::AtomicWaker` extracted into its own crate.
//!
//!
//! # Features
//!
//!
//! This crate adds a feature, `atomic-polyfill`, which uses a polyfill
//! from the [`atomic-polyfill`] crate in order to provide functionality
//! to targets without atomics. See the [`README`] for the [`atomic-polyfill`]
//! crate for more information on how this is implemented by the end-user.
//!
//!
//! [`atomic-polyfill`]: https://crates.io/crates/atomic-polyfill
//! [`README`]: https://github.com/embassy-rs/atomic-polyfill/blob/main/README.md
@ -17,10 +17,10 @@ use core::fmt;
use core::sync::atomic::Ordering::{AcqRel, Acquire, Release};
use core::task::Waker;
#[cfg(not(feature = "atomic-polyfill"))]
use core::sync::atomic::AtomicUsize;
#[cfg(feature = "atomic-polyfill")]
use atomic_polyfill::AtomicUsize;
#[cfg(not(feature = "atomic-polyfill"))]
use core::sync::atomic::AtomicUsize;
/// A synchronization primitive for task wakeup.
///