]> granicus.if.org Git - esp-idf/commit
freertos: prvCheckTasksWaitingTermination bugfix
authorDarian Leung <darian@espressif.com>
Mon, 18 Dec 2017 13:58:15 +0000 (21:58 +0800)
committerDarian Leung <darian@espressif.com>
Tue, 26 Dec 2017 11:03:49 +0000 (19:03 +0800)
commitc41c02872fdd2773f8de1566f7578d65ed8275c0
tree899480109ed73ce8f53894b1e5e1f062d2d3991b
parent5401a75badcfc9c20f7818fdf3c683e3da8b2547
freertos: prvCheckTasksWaitingTermination bugfix

Bugfix to prevent a self deleting no affinity task's memory from being freed by the
idle task of the other core before the self deleting no affinity task is able to context
switch out.  prvCheckTasksWaitingTermination now checks if the task is still on
pxCurrentTCB before freeing task memory.
components/freertos/tasks.c
components/freertos/test/test_freertos_task_delete.c