mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-12-01 16:04:33 +01:00
Hide lock type better to not collide with user types
This commit is contained in:
parent
f076b33bb9
commit
d2ac641c3f
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ pub fn impl_mutex(
|
||||||
type T = #ty;
|
type T = #ty;
|
||||||
|
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
fn lock<R>(&mut self, f: impl FnOnce(&mut #ty) -> R) -> R {
|
fn lock<RTIC_INTERNAL_R>(&mut self, f: impl FnOnce(&mut #ty) -> RTIC_INTERNAL_R) -> RTIC_INTERNAL_R {
|
||||||
/// Priority ceiling
|
/// Priority ceiling
|
||||||
const CEILING: u8 = #ceiling;
|
const CEILING: u8 = #ceiling;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue