static volatile unsigned portBASE_TYPE uxMissedTicks = ( unsigned portBASE_TYPE ) 0;\r
static volatile portBASE_TYPE xMissedYield = ( portBASE_TYPE ) pdFALSE;\r
static volatile portBASE_TYPE xNumOfOverflows = ( portBASE_TYPE ) 0;\r
static volatile unsigned portBASE_TYPE uxMissedTicks = ( unsigned portBASE_TYPE ) 0;\r
static volatile portBASE_TYPE xMissedYield = ( portBASE_TYPE ) pdFALSE;\r
static volatile portBASE_TYPE xNumOfOverflows = ( portBASE_TYPE ) 0;\r
-#if ( configUSE_TRACE_FACILITY == 1 )\r
- static unsigned portBASE_TYPE uxTaskNumber = 0; /*lint !e956 Static is deliberate - this is guarded before use. */\r
-#endif\r
+static unsigned portBASE_TYPE uxTaskNumber = 0;\r
\r
/* Debugging and trace facilities private variables and macros. ------------*/\r
\r
\r
/* Debugging and trace facilities private variables and macros. ------------*/\r
\r
{\r
/* Add a counter into the TCB for tracing only. */\r
pxNewTCB->uxTCBNumber = uxTaskNumber;\r
{\r
/* Add a counter into the TCB for tracing only. */\r
pxNewTCB->uxTCBNumber = uxTaskNumber;\r
\r
prvAddTaskToReadyQueue( pxNewTCB );\r
\r
\r
prvAddTaskToReadyQueue( pxNewTCB );\r
\r
there is a task that has been deleted and that it should therefore\r
check the xTasksWaitingTermination list. */\r
++uxTasksDeleted;\r
there is a task that has been deleted and that it should therefore\r
check the xTasksWaitingTermination list. */\r
++uxTasksDeleted;\r
+\r
+ /* Increment the uxTaskNumberVariable also so kernel aware debuggers\r
+ can detect that the task lists need re-generating. */ \r
+ uxTaskNumber++;\r
}\r
taskEXIT_CRITICAL();\r
\r
}\r
taskEXIT_CRITICAL();\r
\r