You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/05/27 15:38:29 UTC

[GitHub] [incubator-nuttx] patacongo opened a new pull request #1140: sched/task/task_init.c: Add nxtask_uninit()

patacongo opened a new pull request #1140:
URL: https://github.com/apache/incubator-nuttx/pull/1140


   ## Summary
   
   1. sched/task/task_init.c:  Add nxtask_uninit()
   
   Add trivial function nxtask_uninit().  This function will undo all operations on a TCB performed by task_init() and release the TCB by calling kmm_free().  This is intended primarily to support error recovery operations after a successful call to task_init() such was when a subsequent call to task_activate fails.
   
   That error recovery is trivial but not obvious.  This helper function should eliminate confusion about what to do to recover after calling nxtask_init()
   
   2.  sched/task/task_create.c:  Correct logic in error handling
   
   After nxtask_setup_arguments() is called, the task must be removed from the active task list in order to properly recover from any error condition.
   
   ## Impact
   
   None anticipated
   
   ## Testing
   
   sim:nsh
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] Ouss4 merged pull request #1140: sched/task/task_init.c: Add nxtask_uninit()

Posted by GitBox <gi...@apache.org>.
Ouss4 merged pull request #1140:
URL: https://github.com/apache/incubator-nuttx/pull/1140


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org