walnux/libs/libc/sched
Ville Juven 04e760b1c2 sched/gettid: Move thread ID to TLS
There is no need for a gettid() syscall, as the thread ID is stable through
the life of the process. It is safe to put a copy of TID to TLS. This way
a user processes can access TID quickly via its own stack, instead of
having to use an expensive syscall.

Signed-off-by: Ville Juven <ville.juven@unikie.com>
2025-04-08 22:53:10 +08:00
..
clock_getcpuclockid.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
clock_getres.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
CMakeLists.txt sched/gettid: Move thread ID to TLS 2025-04-08 22:53:10 +08:00
Make.defs sched/gettid: Move thread ID to TLS 2025-04-08 22:53:10 +08:00
sched_backtrace.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
sched_cpucount.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
sched_dumpstack.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
sched_getprioritymax.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
sched_getprioritymin.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
task_cancelpt.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
task_gettid.c sched/gettid: Move thread ID to TLS 2025-04-08 22:53:10 +08:00
task_setcancelstate.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
task_setcanceltype.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
task_startup.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
task_testcancel.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00