rtic-sync: introduce loom compat layer and apply it to channel

This commit is contained in:
datdenkikniet 2025-03-16 12:46:23 +01:00 committed by Emil Fresk
parent d76252d767
commit b5db435501
7 changed files with 299 additions and 87 deletions

View file

@ -1,6 +1,6 @@
//! Synchronization primitives for asynchronous contexts.
#![no_std]
#![cfg_attr(not(loom), no_std)]
#![deny(missing_docs)]
#[cfg(feature = "defmt-03")]
@ -11,6 +11,11 @@ pub mod channel;
pub use portable_atomic;
pub mod signal;
mod unsafecell;
#[cfg(test)]
#[macro_use]
extern crate std;
#[cfg(loom)]
mod loom_cs;