mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-19 06:15:45 +01:00
rtic-sync: introduce loom compat layer and apply it to channel
This commit is contained in:
parent
d76252d767
commit
b5db435501
7 changed files with 299 additions and 87 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue