don't split the slot queue in

This commit is contained in:
Jorge Aparicio 2018-05-03 05:47:32 +02:00
parent 20c5e277f7
commit 1b735d8fdd
3 changed files with 2 additions and 26 deletions

View file

@ -52,7 +52,7 @@ required-features = ["timer-queue"]
[dependencies]
cortex-m = "0.4.0"
cortex-m-rtfm-macros = { path = "macros", version = "0.3.1" }
heapless = "0.3.4"
heapless = "0.3.5"
typenum = "1.10.0"
[target.'cfg(target_arch = "x86_64")'.dev-dependencies]

View file

@ -699,7 +699,7 @@ pub fn app(ctxt: &Context, app: &App) -> Tokens {
unsafe { #hidden::#krate::uninitialized() };
for node in N.iter_mut() {
#name::SQ::get().split().0.enqueue_unchecked(node.into());
#name::SQ::get().enqueue_unchecked(node.into());
}
}
})

View file

@ -14,30 +14,6 @@ where
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)]
pub struct Slot<T>
where