sched/group: Change group_kill_children's argument from task_tcb_s to tcb_s

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I8fee46e75bd192bbaa6b03db8fc4d5dd60c58b10
This commit is contained in:
Xiang Xiao 2020-06-03 19:33:56 +08:00 committed by patacongo
parent c6c0214f9a
commit 5785340e04
5 changed files with 7 additions and 7 deletions

View File

@ -101,7 +101,7 @@ FAR struct task_group_s *group_findby_grpid(grpid_t grpid);
FAR struct task_group_s *group_findbypid(pid_t pid); FAR struct task_group_s *group_findbypid(pid_t pid);
int group_foreachchild(FAR struct task_group_s *group, int group_foreachchild(FAR struct task_group_s *group,
foreachchild_t handler, FAR void *arg); foreachchild_t handler, FAR void *arg);
int group_kill_children(FAR struct task_tcb_s *tcb); int group_kill_children(FAR struct tcb_s *tcb);
#ifdef CONFIG_SIG_SIGSTOP_ACTION #ifdef CONFIG_SIG_SIGSTOP_ACTION
int group_suspend_children(FAR struct tcb_s *tcb); int group_suspend_children(FAR struct tcb_s *tcb);
int group_continue(FAR struct tcb_s *tcb); int group_continue(FAR struct tcb_s *tcb);

View File

@ -127,7 +127,7 @@ static int group_kill_children_handler(pid_t pid, FAR void *arg)
* *
****************************************************************************/ ****************************************************************************/
int group_kill_children(FAR struct task_tcb_s *tcb) int group_kill_children(FAR struct tcb_s *tcb)
{ {
int ret; int ret;
@ -136,8 +136,8 @@ int group_kill_children(FAR struct task_tcb_s *tcb)
*/ */
sched_lock(); sched_lock();
ret = group_foreachchild(tcb->cmn.group, group_kill_children_handler, ret = group_foreachchild(tcb->group, group_kill_children_handler,
(FAR void *)((uintptr_t)tcb->cmn.pid)); (FAR void *)((uintptr_t)tcb->pid));
sched_unlock(); sched_unlock();
return ret; return ret;
} }

View File

@ -273,7 +273,7 @@ static void nxsig_abnormal_termination(int signo)
* task group if this_task is a pthread. * task group if this_task is a pthread.
*/ */
group_kill_children((FAR struct task_tcb_s *)rtcb); group_kill_children(rtcb);
#endif #endif
#ifndef CONFIG_DISABLE_PTHREAD #ifndef CONFIG_DISABLE_PTHREAD

View File

@ -83,7 +83,7 @@ void exit(int status)
* exit through a different mechanism. * exit through a different mechanism.
*/ */
group_kill_children((FAR struct task_tcb_s *)tcb); group_kill_children(tcb);
#endif #endif
/* Perform common task termination logic. This will get called again later /* Perform common task termination logic. This will get called again later

View File

@ -126,7 +126,7 @@ int task_restart(pid_t pid)
/* Kill any children of this thread */ /* Kill any children of this thread */
#ifdef HAVE_GROUP_MEMBERS #ifdef HAVE_GROUP_MEMBERS
group_kill_children(tcb); group_kill_children((FAR struct tcb_s *)tcb);
#endif #endif
/* Remove the TCB from whatever list it is in. After this point, the TCB /* Remove the TCB from whatever list it is in. After this point, the TCB