Expand description
Thread support.
Implement the friendly Thread types used by the zephyr::thread
proc macro to declare new
threads.
This is intended to be completely usable without alloc, while still allow threads to be started with any arbitrary Send arguments. Threads can be joined, and reused after they have exited. The model intentionally tries to be similar to how async tasks work in something like Embassy, but some changes due to the different semantics of Zephyr threads.
Structs§
- Init
Data - The holder of data that is to be shared with the target thread.
- Ready
Thread - A thread that has been set up and is ready to start.
- Running
Thread - A thread that has been started.
- Thread
- A zephyr thread.
- Thread
Data - The static data associated with each thread. The stack is kept separate, as it is intended to go into an uninitialized linker section.
- Thread
Stack - A Zephyr stack declaration.
Enums§
- Thread
State - States a Zephyr thread can be in.
Functions§
- stack_
len - Adjust a given requested stack size up for the alignment. This is just the stack, and the reservation is explicitly included in the stack declaration below.