Expand description
Zephyr Semaphore support
This is a thin wrapper around Zephyr’s k_sem
. This is one of the few of the sys
primitives
in Zephyr that is actually perfectly usable on its own, without needing additional wrappers.
Zephyr implements counting semaphores, with both an upper and lower bound on the count. Note that calling ‘give’ on a semaphore that is at the maximum count will discard the ‘give’ operation, which in situation where counting is actually desired, will result in the count being incorrect.
Structs§
- A zephyr
k_sem
usable from safe Rust code.
Constants§
Type Aliases§
- A static Zephyr
k_sem
.