aboutsummaryrefslogtreecommitdiff
path: root/macros/src
diff options
context:
space:
mode:
authorGravatar Per Lindgren <per.lindgren@ltu.se> 2020-06-13 01:21:22 +0200
committerGravatar Per Lindgren <per.lindgren@ltu.se> 2020-06-13 01:21:22 +0200
commit7c504668dab4334baefefefd952044a28bc1f4c8 (patch)
treed181c11007cdc0a16b11e73585a1a32e92dc51cf /macros/src
parentc360ffaad8a2349a8bb210c2de2eed40d1765fd7 (diff)
downloadrtic-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.rs2
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;