walnux/sched
Jukka Laitinen e4d5c78008 Fix signal delivered to a wrong thread
When using pthread_kill, the signal should be delivered to the
specified thread. Current implementation, however, may add the
signal to the groups pending list, if the signal is masked at the
time of dispatch. From the group's pending list it can be delivered
to any thread of the group, which is wrong.

Fix this by adding a new field "FAR struct tcb_s *tcb" to
"struct sigpendq", marking if the signal needs to be delivered
to a specific thread. Use NULL for the value if delivery to any
thread in the group is ok.

Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae>
2025-05-08 21:32:35 +08:00
..
addrenv sem_waitirq: Use kmap interface to access the semaphore 2024-12-18 08:57:01 +08:00
clock Revert "No need to call sched_lock explicitly after call spin_lock_irqsave, since it will be called in func spin_lock_irqsave." 2025-02-13 14:15:43 +08:00
environ sched/environ: There is no need to use sched_[un]lock 2024-10-11 02:43:11 +08:00
event sched/event: init deleted node to avoid null pointer reference 2024-12-26 23:28:37 +08:00
group Fix signal delivered to a wrong thread 2025-05-08 21:32:35 +08:00
init sched/init: Fix build error with CONFIG_BOARD_CRASHDUMP_CUSTOM 2025-03-08 00:18:25 +08:00
instrument gprof: move gprof function from sched to libbuiltin/libgcc 2024-11-13 02:42:31 +08:00
irq sched/spin_lock: rename raw_spin_lock to spin_lock_notrace 2025-02-13 20:48:15 +08:00
misc Clean up the nxmutex library 2025-05-08 16:00:05 +08:00
module libc/elf: rename modlib to libelf 2025-04-11 09:43:22 +08:00
mqueue sched/mqueue/CMakeLists.txt: fix compilation for CONFIG_DISABLE_MQUEUE_SYSV=n 2025-01-17 23:14:39 +08:00
paging Remove duplicate includes across multiple files 2025-01-09 23:30:23 +08:00
pthread Integrate nxmutex support fully into nxsem 2025-05-08 16:00:05 +08:00
sched Clean up the nxmutex library 2025-05-08 16:00:05 +08:00
semaphore Integrate nxmutex support fully into nxsem 2025-05-08 16:00:05 +08:00
signal Fix signal delivered to a wrong thread 2025-05-08 21:32:35 +08:00
task sched/affinity: Fix CPU_LOCKED functionality for some SMP calls 2025-04-26 13:56:27 +08:00
timer sched/timer: remove critical section in setitimer 2025-01-19 17:08:32 +08:00
tls sched/gettid: Move thread ID to TLS 2025-04-08 22:53:10 +08:00
wdog sched: Improved the wdog and wq list insertion. 2025-05-07 02:02:10 +08:00
wqueue sched: Improved the wdog and wq list insertion. 2025-05-07 02:02:10 +08:00
CMakeLists.txt sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
Kconfig libc/elf: rename modlib to libelf 2025-04-11 09:43:22 +08:00
Makefile Revert "build depend:Revert Make.dep intermediate ddc file" 2024-09-15 19:29:47 +08:00