Menu

#94 All deleted tasks to be cleaned up by any other task

closed
nobody
None
5
2020-02-24
2015-11-02
No

Make prvCheckTasksWaitingTermination() a non static function so it can be called from application tasks too, and have it return a value that indicates whether more tasks are waiting to have their memory freed.

Discussion

  • Richard Barry

    Richard Barry - 2016-03-29

    V9.0.0 deletes tasks immediately, unless a task deletes itself, in which case it is still cleaned by the Idle task. prvCheckTasksWaitingTermination() is currently still a private function.

     
    • Tom Barclay

      Tom Barclay - 2016-06-28

      If a task is statically allocated (stack and TCB) what does vDelete actually delete ?

       
      • Richard Barry

        Richard Barry - 2016-06-28

        You can see the source code of vTaskDelete() by searching for the
        function in the source file here:

        https://sourceforge.net/p/freertos/code/HEAD/tree/trunk/FreeRTOS/Source/tasks.c

        You will see it calls prvDeleteTCB() which is also implemented in the
        same source file.

        I think both functions are quite well commented.

         
  • Richard Barry

    Richard Barry - 2020-02-24
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB