nuttx/sched/task
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
..
CMakeLists.txt Rename group_argvstr to nxtask_argvstr 2024-10-10 23:13:37 +08:00
exit.c sched: add header irq.h to exit.c 2024-11-04 11:07:40 -03:00
Make.defs Rename group_argvstr to nxtask_argvstr 2024-10-10 23:13:37 +08:00
spawn.h sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
task.h task: merge nxtask_setup_name() before create_stack 2024-10-07 15:47:13 +08:00
task_activate.c task: use get_task_name where possible 2024-10-01 20:38:06 +08:00
task_argvstr.c Rename group_argvstr to nxtask_argvstr 2024-10-10 23:13:37 +08:00
task_cancelpt.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
task_create.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
task_delete.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
task_execve.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
task_exit.c task_exit.c: Add missing sched_note_stop() 2024-10-23 12:08:18 -03:00
task_exithook.c sched: Replace direct semaphore value access with nxsem_get_value 2025-04-07 16:29:57 +08:00
task_fork.c pthread: remove enter_critical_section in pthread_mutex 2025-01-12 22:30:35 +08:00
task_getgroup.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
task_getpid.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
task_getppid.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
task_gettid.c sched/gettid: Move thread ID to TLS 2025-04-08 22:53:10 +08:00
task_init.c sched/gettid: Move thread ID to TLS 2025-04-08 22:53:10 +08:00
task_join.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
task_posixspawn.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
task_prctl.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
task_recover.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
task_reparent.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
task_restart.c in smp_call handle we only change TCB_FLAG_CPU_LOCKED bit of tcb->flag 2024-11-16 01:58:59 +08:00
task_setup.c sched: remove all spin_lock_irqsave(NULL) 2025-01-06 23:11:44 +08:00
task_spawn.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
task_spawnparms.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
task_start.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
task_starthook.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
task_terminate.c smpcall: add nxsched_smp_call_async and nxsched_smp_call_single_async 2024-11-06 09:53:28 +08:00