Moved the position of the traceTASK_DELETED() macro.

pull/4/head
Richard Barry 16 years ago
parent 25644cbf5d
commit 245bb81bc0

@ -510,8 +510,6 @@ tskTCB * pxNewTCB;
/* If null is passed in here then we are deleting ourselves. */
pxTCB = prvGetTCBFromHandle( pxTaskToDelete );
traceTASK_DELETE( pxTCB );
/* 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
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
can detect that the task lists need re-generating. */
uxTaskNumber++;
traceTASK_DELETE( pxTCB );
}
taskEXIT_CRITICAL();

Loading…
Cancel
Save