File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -1923,11 +1923,12 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,
19231923 * no longer running. */
19241924 if ( taskTASK_IS_RUNNING_OR_YIELDING ( pxTCB ) != pdFALSE )
19251925 {
1926- /* A running task is being deleted. This cannot complete within the
1927- * task itself, as a context switch to another task is required.
1928- * Place the task in the termination list. The idle task will
1929- * check the termination list and free up any memory allocated by
1930- * the scheduler for the TCB and stack of the deleted task. */
1926+ /* A running or yielding task is being deleted. This cannot complete
1927+ * when the task is still running on core, as a context switch to
1928+ * another task is required. Place the task in the termination list.
1929+ * The idle task will check the termination list and free up any
1930+ * memory allocated by the scheduler for the TCB and stack of the
1931+ * deleted task. */
19311932 vListInsertEnd ( & xTasksWaitingTermination , & ( pxTCB -> xStateListItem ) );
19321933
19331934 /* Increment the ucTasksDeleted variable so the idle task knows
You can’t perform that action at this time.
0 commit comments