From 245bb81bc09893d4d77c039aa9a6e6bed0371ef8 Mon Sep 17 00:00:00 2001 From: Richard Barry <ribarry@amazon.com> Date: Fri, 22 May 2009 15:35:40 +0000 Subject: [PATCH] Moved the position of the traceTASK_DELETED() macro. --- Source/tasks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/tasks.c b/Source/tasks.c index 67e35c257..34ed8f5c0 100644 --- a/Source/tasks.c +++ b/Source/tasks.c @@ -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();