1
0
Fork 0
mirror of https://github.com/rtic-rs/rtic.git synced 2025-03-21 13:36:22 +01:00

Lock Optimization RFC (Notes updated)

This commit is contained in:
Per Lindgren 2019-09-28 21:48:03 +02:00
parent cb7486ed4f
commit 98c44c154c

View file

@ -140,7 +140,6 @@ Basically we create `Priority` (on stack) and use that to create a `Context`. Th
Overall, using this approach, we don't need a trampoline (`run`). We reduce the overhead by at least two machine instructions (additional reading/writing of BASEPRI) for each interrupt. It also reduces the register pressure (as less information needs to be stored).
## Evaluation
The `examples/lockopt.rs` shows that locks are effectively optimized out.