mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-24 15:31:56 -04:00
Moved the position of the traceTASK_DELETED() macro.
This commit is contained in:
parent
25644cbf5d
commit
245bb81bc0
|
@ -510,8 +510,6 @@ tskTCB * pxNewTCB;
|
||||||
/* If null is passed in here then we are deleting ourselves. */
|
/* If null is passed in here then we are deleting ourselves. */
|
||||||
pxTCB = prvGetTCBFromHandle( pxTaskToDelete );
|
pxTCB = prvGetTCBFromHandle( pxTaskToDelete );
|
||||||
|
|
||||||
traceTASK_DELETE( pxTCB );
|
|
||||||
|
|
||||||
/* Remove task from the ready list and place in the termination list.
|
/* Remove task from the ready list and place in the termination list.
|
||||||
This will stop the task from be scheduled. The idle task will check
|
This will stop the task from be scheduled. The idle task will check
|
||||||
the termination list and free up any memory allocated by the
|
the termination list and free up any memory allocated by the
|
||||||
|
@ -534,6 +532,8 @@ tskTCB * pxNewTCB;
|
||||||
/* Increment the uxTaskNumberVariable also so kernel aware debuggers
|
/* Increment the uxTaskNumberVariable also so kernel aware debuggers
|
||||||
can detect that the task lists need re-generating. */
|
can detect that the task lists need re-generating. */
|
||||||
uxTaskNumber++;
|
uxTaskNumber++;
|
||||||
|
|
||||||
|
traceTASK_DELETE( pxTCB );
|
||||||
}
|
}
|
||||||
taskEXIT_CRITICAL();
|
taskEXIT_CRITICAL();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue