mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-02-25 09:48:39 +01:00
don't split the slot queue in
This commit is contained in:
parent
20c5e277f7
commit
1b735d8fdd
3 changed files with 2 additions and 26 deletions
|
@ -52,7 +52,7 @@ required-features = ["timer-queue"]
|
||||||
[dependencies]
|
[dependencies]
|
||||||
cortex-m = "0.4.0"
|
cortex-m = "0.4.0"
|
||||||
cortex-m-rtfm-macros = { path = "macros", version = "0.3.1" }
|
cortex-m-rtfm-macros = { path = "macros", version = "0.3.1" }
|
||||||
heapless = "0.3.4"
|
heapless = "0.3.5"
|
||||||
typenum = "1.10.0"
|
typenum = "1.10.0"
|
||||||
|
|
||||||
[target.'cfg(target_arch = "x86_64")'.dev-dependencies]
|
[target.'cfg(target_arch = "x86_64")'.dev-dependencies]
|
||||||
|
|
|
@ -699,7 +699,7 @@ pub fn app(ctxt: &Context, app: &App) -> Tokens {
|
||||||
unsafe { #hidden::#krate::uninitialized() };
|
unsafe { #hidden::#krate::uninitialized() };
|
||||||
|
|
||||||
for node in N.iter_mut() {
|
for node in N.iter_mut() {
|
||||||
#name::SQ::get().split().0.enqueue_unchecked(node.into());
|
#name::SQ::get().enqueue_unchecked(node.into());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
24
src/node.rs
24
src/node.rs
|
@ -14,30 +14,6 @@ where
|
||||||
payload: T,
|
payload: T,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "timer-queue")]
|
|
||||||
impl<T> Eq for Node<T> {}
|
|
||||||
|
|
||||||
#[cfg(feature = "timer-queue")]
|
|
||||||
impl<T> Ord for Node<T> {
|
|
||||||
fn cmp(&self, rhs: &Self) -> Ordering {
|
|
||||||
self.baseline.cmp(&rhs.baseline)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(feature = "timer-queue")]
|
|
||||||
impl<T> PartialEq for Node<T> {
|
|
||||||
fn eq(&self, rhs: &Self) -> bool {
|
|
||||||
self.baseline.eq(&rhs.baseline)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(feature = "timer-queue")]
|
|
||||||
impl<T> PartialOrd for Node<T> {
|
|
||||||
fn partial_cmp(&self, rhs: &Self) -> Option<Ordering> {
|
|
||||||
Some(self.cmp(rhs))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub struct Slot<T>
|
pub struct Slot<T>
|
||||||
where
|
where
|
||||||
|
|
Loading…
Reference in a new issue