diff options
author | 2017-07-18 20:03:22 -0500 | |
---|---|---|
committer | 2017-07-18 20:03:22 -0500 | |
commit | 97a7e38db7eb0643a6334aba30077622d09e5c85 (patch) | |
tree | a561e574a8cb36b748c84f69ee679fe0e61f1899 /macros/src | |
parent | a2b0c9e0d077870441ecdea00108c3a3a394fd9b (diff) | |
download | rtic-97a7e38db7eb0643a6334aba30077622d09e5c85.tar.gz rtic-97a7e38db7eb0643a6334aba30077622d09e5c85.tar.zst rtic-97a7e38db7eb0643a6334aba30077622d09e5c85.zip |
tasks / idle have exclusive access to Threshold, but do not own the token
Diffstat (limited to 'macros/src')
-rw-r--r-- | macros/src/trans.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/macros/src/trans.rs b/macros/src/trans.rs index 4d51840f..ef224c19 100644 --- a/macros/src/trans.rs +++ b/macros/src/trans.rs @@ -50,8 +50,8 @@ fn idle( .iter() .all(|resource| ownerships[resource].is_owned()) { - tys.push(quote!(#krate::Threshold)); - exprs.push(quote!(unsafe { #krate::Threshold::new(0) })); + tys.push(quote!(&mut #krate::Threshold)); + exprs.push(quote!(unsafe { &mut #krate::Threshold::new(0) })); } if !app.idle.locals.is_empty() { |