aboutsummaryrefslogtreecommitdiff
path: root/macros/src/codegen.rs
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2018-12-16 01:11:54 +0100
committerGravatar Jorge Aparicio <jorge@japaric.io> 2018-12-16 01:11:54 +0100
commit9757c33b0051900fa6c5581be413880d07a237d2 (patch)
treee28892d33c19f070a5a9194ba569ff76a2b1e4d2 /macros/src/codegen.rs
parent8ac60ce369d8b4b73bf9018720f04675922c9b06 (diff)
downloadrtic-9757c33b0051900fa6c5581be413880d07a237d2.tar.gz
rtic-9757c33b0051900fa6c5581be413880d07a237d2.tar.zst
rtic-9757c33b0051900fa6c5581be413880d07a237d2.zip
use the single core variant of spsc::Queue
Diffstat (limited to 'macros/src/codegen.rs')
-rw-r--r--macros/src/codegen.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/macros/src/codegen.rs b/macros/src/codegen.rs
index 6b8e1594..71c60907 100644
--- a/macros/src/codegen.rs
+++ b/macros/src/codegen.rs
@@ -1594,13 +1594,13 @@ fn pre_init(ctxt: &Context, app: &App, analysis: &Analysis) -> proc_macro2::Toke
// these are `MaybeUninit` `ReadyQueue`s
for dispatcher in ctxt.dispatchers.values() {
let rq = &dispatcher.ready_queue;
- exprs.push(quote!(#rq.set(rtfm::export::ReadyQueue::new());))
+ exprs.push(quote!(#rq.set(rtfm::export::ReadyQueue::new_sc());))
}
// these are `MaybeUninit` `FreeQueue`s
for task in ctxt.tasks.values() {
let fq = &task.free_queue;
- exprs.push(quote!(#fq.set(rtfm::export::FreeQueue::new());))
+ exprs.push(quote!(#fq.set(rtfm::export::FreeQueue::new_sc());))
}
// end-of-FIXME