diff options
| author | 2018-12-16 00:12:43 +0000 | |
|---|---|---|
| committer | 2018-12-16 00:12:43 +0000 | |
| commit | 5c458fc115393b93b158b7f6770bc81596d97977 (patch) | |
| tree | e28892d33c19f070a5a9194ba569ff76a2b1e4d2 /macros/src/codegen.rs | |
| parent | c4b7fbeb020da861922a037e66fbea2d0756fc93 (diff) | |
| parent | 9757c33b0051900fa6c5581be413880d07a237d2 (diff) | |
| download | rtic-5c458fc115393b93b158b7f6770bc81596d97977.tar.gz rtic-5c458fc115393b93b158b7f6770bc81596d97977.tar.zst rtic-5c458fc115393b93b158b7f6770bc81596d97977.zip | |
Merge #113
113: use the single core variant of spsc::Queue r=japaric a=japaric
Co-authored-by: Jorge Aparicio <jorge@japaric.io>
Diffstat (limited to 'macros/src/codegen.rs')
| -rw-r--r-- | macros/src/codegen.rs | 4 |
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 |
