patacongo commented on pull request #1099:
URL: https://github.com/apache/incubator-nuttx/pull/1099#issuecomment-634804769


   I added task_uninit() with PR #1140 to simplify the error recovery if 
nxtask_activate() fails after a sucessful call to nxtask_init().  Then the 
error recovery is much cleaner and not so mysterious:
   
         /* Then activate the task at the provided priority */
       
         ret = task_activate((FAR struct tcb_s *)tcb);
         if (ret < 0)
           {
             nxtask_uninit(tcb);
           }


----------------------------------------------------------------
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:
[email protected]


Reply via email to