mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2024-12-23 20:51:31 +11:00
Merge pull request #483 from zachs18/patch-1
Remove unnecessary `mut` from `static mut LOCK_OWNER: AtomicU8` in critical section impl.
This commit is contained in:
commit
e60a979eda
|
@ -14,7 +14,7 @@ const LOCK_UNOWNED: u8 = 0;
|
||||||
/// Indicates which core owns the lock so that we can call critical_section recursively.
|
/// Indicates which core owns the lock so that we can call critical_section recursively.
|
||||||
///
|
///
|
||||||
/// 0 = no one has the lock, 1 = core0 has the lock, 2 = core1 has the lock
|
/// 0 = no one has the lock, 1 = core0 has the lock, 2 = core1 has the lock
|
||||||
static mut LOCK_OWNER: AtomicU8 = AtomicU8::new(LOCK_UNOWNED);
|
static LOCK_OWNER: AtomicU8 = AtomicU8::new(LOCK_UNOWNED);
|
||||||
|
|
||||||
/// Marker value to indicate that we already owned the lock when we started the `critical_section`.
|
/// Marker value to indicate that we already owned the lock when we started the `critical_section`.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in a new issue