This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to recreate a task after calling Task_exit() in case Task_construct() is used to create the task?

Hi Champs,

I use SYS/BIOS v6.34 and use Task_construct() API to create a task.
According to the SYS/BIOS APIs(cdoc) below:

  o SYS/BIOS v6.34 APIs(cdoc)
    (file:///C:/ti/bios_6_34_05_24/docs/cdoc/index.html)

    - Task Manager

      - TASK DELETION

        Assuming a task completely cleans up after itself prior to calling
        Task_exit()(or falling through the the bottom of the task function),
        it is then safest to use Task_delete() only when a task is in the
        'Task_Mode_TERMINATED' state.


So, should I call Task_destruct() and then Task_construct() to clean up and recreate the task after calling Task_exit()? 

Thanks in advance for your cooperation.

Best regards,
j-breeze