You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2020/10/30 07:48:35 UTC

[incubator-nuttx] branch releases/10.0 updated: sched/task: do not migrate the task state to INVALID

This is an automated email from the ASF dual-hosted git repository.

aguettouche pushed a commit to branch releases/10.0
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/releases/10.0 by this push:
     new 7d4400c  sched/task: do not migrate the task state to INVALID
7d4400c is described below

commit 7d4400cbefcae29430d459d028f2aae1fcbb5025
Author: chao.an <an...@xiaomi.com>
AuthorDate: Mon Aug 3 17:00:58 2020 +0800

    sched/task: do not migrate the task state to INVALID
    
    which still on used in task/nxmq_recover()
    
    Change-Id: I31273aadd9e09c283cc3d0420dfc854ca8ae1899
    Signed-off-by: chao.an <an...@xiaomi.com>
---
 sched/task/task_terminate.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sched/task/task_terminate.c b/sched/task/task_terminate.c
index 127ca5b..0f63451 100644
--- a/sched/task/task_terminate.c
+++ b/sched/task/task_terminate.c
@@ -158,7 +158,6 @@ int nxtask_terminate(pid_t pid, bool nonblocking)
   /* Remove the task from the task list */
 
   dq_rem((FAR dq_entry_t *)dtcb, tasklist);
-  dtcb->task_state = TSTATE_TASK_INVALID;
 
   /* At this point, the TCB should no longer be accessible to the system */