zephyr module contains functions and classes specific to the Zephyr port.
Returns true if the current thread is a preemptible thread.
Zephyr preemptible threads are those with non-negative priority values (low priority levels), which therefore, can be supplanted as soon as a higher or equal priority thread becomes ready.
Returns the thread id of the current thread, which is used to reference the thread.
Runs the Zephyr debug thread analyzer on the current thread and prints stack size statistics in the format:
thread_name-20s: STACK: unused
CPU utilization is only printed if runtime statistics are configured via the ``CONFIG_THREAD_RUNTIME_STATS`` kconfig
This function can only be accessed if
CONFIG_THREAD_ANALYZERis configured for the port in
zephyr/prj.conf. For more information, see documentation for Zephyr thread analyzer.