zephyr/kernel/include
Peter Mitsis 5710e034e7 kernel: Introduce _THREAD_SLEEPING state bit
At the present time, Zephyr does has overlap between sleeping and
suspending. Not only should sleeping and suspended be orthogonal
states, but we should ensure users always employ the correct API.
For example, to wake a sleeping thread, k_wakeup() should be used,
and to resume a suspended thread, k_thread_resume() should be used.
However, at the present time k_thread_resume() can be used on a
thread that called k_sleep(K_FOREVER). Sleeping should have nothing
to do with suspension.

This commit introduces the new _THREAD_SLEEPING thread state along
with some prep-work to facilitate the decoupling of the sleeping and
suspended thread states.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2024-12-18 18:17:03 +01:00
..
gen_offset.h arch: remove the use of z_arch_esf_t completely from internal 2024-06-04 14:02:51 -05:00
ipi.h kernel: Add CONFIG_IPI_OPTIMIZE 2024-06-04 22:35:54 -04:00
kernel_arch_interface.h kernel: arch: move arch_swap() declaration 2024-12-11 21:33:49 +01:00
kernel_internal.h arch: deprecate _current 2024-11-23 20:12:24 -05:00
kernel_offsets.h arch: riscv: fill all IRQ stacks with 0xAA 2024-09-13 09:17:34 +02:00
kernel_tls.h linker: Round TLS sizes up in linker script 2024-02-25 22:28:56 -05:00
ksched.h arch: deprecate _current 2024-11-23 20:12:24 -05:00
kswap.h arch: deprecate _current 2024-11-23 20:12:24 -05:00
kthread.h kernel: Introduce _THREAD_SLEEPING state bit 2024-12-18 18:17:03 +01:00
mmu.h kernel: mm: rename z_num_pagefaults_get to k_mem_num_* 2024-06-12 21:13:26 -04:00
offsets_short.h build: namespace the generated headers with zephyr/ 2024-05-28 22:03:55 +02:00
priority_q.h kernel: Move run queue initialization 2024-11-16 15:20:15 -05:00
timeout_q.h kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
wait_q.h kernel: move priority queue handling to own file/header 2024-03-02 15:06:45 +01:00