diff options
author | 2020-06-13 01:21:22 +0200 | |
---|---|---|
committer | 2020-06-13 01:21:22 +0200 | |
commit | 7c504668dab4334baefefefd952044a28bc1f4c8 (patch) | |
tree | d181c11007cdc0a16b11e73585a1a32e92dc51cf /macros/src | |
parent | c360ffaad8a2349a8bb210c2de2eed40d1765fd7 (diff) | |
download | rtic-7c504668dab4334baefefefd952044a28bc1f4c8.tar.gz rtic-7c504668dab4334baefefefd952044a28bc1f4c8.tar.zst rtic-7c504668dab4334baefefefd952044a28bc1f4c8.zip |
wip3, examples lock3 and lock4 now express intended use, relation to Exclusive still not resolved
Diffstat (limited to 'macros/src')
-rw-r--r-- | macros/src/codegen/util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macros/src/codegen/util.rs b/macros/src/codegen/util.rs index d8d05453..0d50b0ac 100644 --- a/macros/src/codegen/util.rs +++ b/macros/src/codegen/util.rs @@ -72,7 +72,7 @@ pub fn impl_mutex( impl<'a> rtic::Mutex for #path<'a> { type T = #ty; #[inline(always)] - fn lock<R>(&mut self, f: impl FnOnce(&mut #ty) -> R) -> R { + fn lock<R>(&self, f: impl FnOnce(&mut #ty) -> R) -> R { /// Priority ceiling const CEILING: u8 = #ceiling; |