mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-24 04:32:52 +01:00
Lock Optimization RFC (Notes updated)
This commit is contained in:
parent
ae9608a0b6
commit
83810ee3fc
1 changed files with 1 additions and 1 deletions
2
Notes.md
2
Notes.md
|
@ -3,7 +3,7 @@
|
||||||
## Idea
|
## Idea
|
||||||
|
|
||||||
We are reading BASEPRI independently if and only if we are actually changing BASEPRI.
|
We are reading BASEPRI independently if and only if we are actually changing BASEPRI.
|
||||||
On restoring BASEPRI chose to restore read value if at the outmost nesting level (initial priority of the task). In this way, unnecessary BASEPRI accesses, and reduce register pressure.
|
On restoring BASEPRI chose to restore read value if at the outmost nesting level (initial priority of the task). In this way, we can avoid unnecessary BASEPRI accesses, and reduce register pressure.
|
||||||
|
|
||||||
If you want to play around checkout the `lockopt` branch and use:
|
If you want to play around checkout the `lockopt` branch and use:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue