nuttx/sched
ligd ece224a7e3 sched/waitpid: handle waitpid waitting tcb->group is NULL
Fail case:
exit -> nxtask_terminate -> nxtask_exithook -> nxsched_release_tcb
                            group_leave     || nxsched_releasepid & group_leave
                                            /\
                                           /  \
                                       switch out & waitpid()

Thread A group_leave in nxtask_exithook, switch out,
Thread B do waitpid(thread A) then meet traget thread A group is NULL, error.

Change-Id: Ia181d7a13aa645ec1c3141a45839fbf79db35b17
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-07-04 06:23:59 -05:00
..
clock Replace mktime with timegm in rtc and fs driver 2021-06-23 13:43:32 -03:00
environ Don't include assert.h from public header file 2021-06-03 08:36:03 -07:00
group sched: Refine tls_info_s and task_info_s 2021-07-02 10:33:34 -05:00
init sched: add STACK_USAGE_SAFE_PERCENT for stack overflow check 2021-07-03 12:56:40 -05:00
irq sched: add CONFIG_SCHED_CRITMONITOR_XX for debugging system lantency 2021-07-02 08:25:02 -05:00
module Rename MODULE_TEXT to TEXT_HEAP as the latter is more generic. 2021-06-18 07:14:17 -05:00
mqueue Don't include assert.h from public header file 2021-06-03 08:36:03 -07:00
paging Don't include assert.h from public header file 2021-06-03 08:36:03 -07:00
pthread sched: Refine tls_info_s and task_info_s 2021-07-02 10:33:34 -05:00
sched sched/waitpid: handle waitpid waitting tcb->group is NULL 2021-07-04 06:23:59 -05:00
semaphore Don't include assert.h from public header file 2021-06-03 08:36:03 -07:00
signal Don't include assert.h from public header file 2021-06-03 08:36:03 -07:00
task sched: Refine tls_info_s and task_info_s 2021-07-02 10:33:34 -05:00
timer Don't include assert.h from public header file 2021-06-03 08:36:03 -07:00
wdog sched: add CONFIG_SCHED_CRITMONITOR_XX for debugging system lantency 2021-07-02 08:25:02 -05:00
wqueue sched: add CONFIG_SCHED_CRITMONITOR_XX for debugging system lantency 2021-07-02 08:25:02 -05:00
Kconfig sched: add depends on ARCH_INTERRUPTSTACK to SMP 2021-07-03 07:02:33 -05:00
Makefile style/Makefile: remove unnecessary trailing whitespace 2020-11-28 12:20:30 +01:00