mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-18 05:45:19 +01:00
tasks / idle have exclusive access to Threshold, but do not own the token
This commit is contained in:
parent
a2b0c9e0d0
commit
97a7e38db7
10 changed files with 61 additions and 17 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue