zephyr/tests/kernel/threads
Andy Ross 7cdf40541b kernel/sched: Eliminate PRESTART thread state
Traditionally threads have been initialized with a PRESTART flag set,
which gets cleared when the thread runs for the first time via either
its timeout or the k_thread_start() API.

But if you think about it, this is no different, semantically, than
SUSPENDED: the thread is prevented from running until the flag is
cleared.

So unify the two.  Start threads in the SUSPENDED state, point
everyone looking at the PRESTART bit to the SUSPENDED flag, and make
k_thread_start() be a synonym for k_thread_resume().

There is some mild code size savings from the eliminated duplication,
but the real win here is that we make space in the thread flags byte,
which had run out.

Signed-off-by: Andy Ross <andyross@google.com>
2024-11-27 10:38:05 -05:00
..
dynamic_thread
dynamic_thread_stack
no-multithreading
thread_apis kernel/sched: Eliminate PRESTART thread state 2024-11-27 10:38:05 -05:00
thread_error_case tests: thread_error_case: fix incorrect userspace filtering 2024-11-20 15:58:15 -05:00
thread_init
thread_stack
tls arch: kernel: lib: toolchain: Standardize TLS keyword 2024-09-23 10:01:48 +02:00