From 84508e3483409c2a8cda5e3e4d9e00cad24ff88d Mon Sep 17 00:00:00 2001 From: richardbarry Date: Fri, 22 May 2009 15:35:40 +0000 Subject: [PATCH] Moved the position of the traceTASK_DELETED() macro. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@732 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- 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(); -- 2.39.2