mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-27 14:04:56 +01:00
note that entering / leaving a critical section is always constant time
This commit is contained in:
parent
313a2074d7
commit
7de9687dfa
1 changed files with 2 additions and 1 deletions
|
@ -253,7 +253,8 @@ impl U32Ext for u32 {
|
|||
///
|
||||
/// In RTFM, locks are implemented as critical sections that prevent other tasks from *starting*.
|
||||
/// These critical sections are implemented by temporarily increasing the dynamic priority (see
|
||||
/// [BASEPRI]) of the current context.
|
||||
/// [BASEPRI]) of the current context. Entering and leaving these critical sections is always done
|
||||
/// in constant time (a few instructions).
|
||||
///
|
||||
/// [BASEPRI]: https://developer.arm.com/products/architecture/cpu-architecture/m-profile/docs/100701/latest/special-purpose-mask-registers
|
||||
pub trait Mutex {
|
||||
|
|
Loading…
Reference in a new issue