From: richardbarry Date: Fri, 22 May 2009 15:35:40 +0000 (+0000) Subject: Moved the position of the traceTASK_DELETED() macro. X-Git-Tag: V5.3.0~34 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=84508e3483409c2a8cda5e3e4d9e00cad24ff88d;p=freertos 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 --- 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();