incubator-nuttx/sched/task
Ville Juven 112b8cf470 sched/task_exit.c: Refresh current CPU instead of relying on stale value
The comment about the CPU index remaining stable is incorrect. There is no
guarantee the task does not yield during the exit process, meaning the CPU
can most definitely change. Also, there is no reason why it should not be
allowed to change.

This fixes a full system crash during process exit when the CPU changes
and we query the current task from the old CPU.
2024-10-22 23:28:52 +08:00
..
CMakeLists.txt Rename group_argvstr to nxtask_argvstr 2024-10-10 23:13:37 +08:00
Make.defs Rename group_argvstr to nxtask_argvstr 2024-10-10 23:13:37 +08:00
exit.c sched: replace sync pause with async pause for nxtask_terminate 2024-10-06 09:26:56 +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 sched/task_exit.c: Refresh current CPU instead of relying on stale value 2024-10-22 23:28:52 +08:00
task_exithook.c sched/task: There is no need to use sched_[un]lock 2024-10-11 02:43:11 +08:00
task_fork.c sched/task: There is no need to use sched_[un]lock 2024-10-11 02:43:11 +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: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
task_init.c task: merge nxtask_setup_name() before create_stack 2024-10-07 15:47:13 +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 sched: remove param in nxsched_remove_readytorun 2024-10-10 08:44:52 +08:00
task_setup.c sched: Use spinlock repalce sched_[un]lock in some place 2024-10-16 13:53:51 +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 sched: remove param in nxsched_remove_readytorun 2024-10-10 08:44:52 +08:00