mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-23 20:22:51 +01:00
Fix use of parameters in async task
This commit is contained in:
parent
952bb5c431
commit
2e9dba7c81
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ pub fn codegen(app: &App, analysis: &Analysis, extra: &Extra) -> Vec<TokenStream
|
||||||
(&mut *#fq.get_mut()).split().0.enqueue_unchecked(index);
|
(&mut *#fq.get_mut()).split().0.enqueue_unchecked(index);
|
||||||
|
|
||||||
let priority = &rtic::export::Priority::new(PRIORITY);
|
let priority = &rtic::export::Priority::new(PRIORITY);
|
||||||
(&mut *#exec_name.get_mut()).spawn(#name(#name::Context::new(priority), #(,#pats)*));
|
(&mut *#exec_name.get_mut()).spawn(#name(#name::Context::new(priority) #(,#pats)*));
|
||||||
#executor_run_ident.store(true, core::sync::atomic::Ordering::Relaxed);
|
#executor_run_ident.store(true, core::sync::atomic::Ordering::Relaxed);
|
||||||
} else {
|
} else {
|
||||||
retry_queue.push_unchecked((#t::#name, index));
|
retry_queue.push_unchecked((#t::#name, index));
|
||||||
|
|
Loading…
Reference in a new issue