Module critical

Source
Expand description

Zephyr implementation of critical sections.

The critical-section crate explicitly states that critical sections can be nested. Unfortunately, Zephyr spinlocks cannot be nested. It is possible to nest different ones, but the critical-section implementation API doesn’t give access to the stack.