if( pxTCB == pxCurrentTCB )\r
{\r
configASSERT( uxSchedulerSuspended == 0 );\r
+\r
+ /* The pre-delete hook is primarily for the Windows simulator,\r
+ in which Windows specific clean up operations are performed,\r
+ after which it is not possible to yield away from this task - \r
+ hence xYieldPending is used to latch that a context switch is\r
+ required. */\r
+ portPRE_DELETE_HOOK( pxTCB, &xYieldPending );\r
portYIELD_WITHIN_API();\r
}\r
}\r
}\r
/*-----------------------------------------------------------*/\r
\r
-void vTaskPlaceOnEventList( xList * const pxEventList, portTickType xTicksToWait )\r
+void vTaskPlaceOnEventList( xList * const pxEventList, const portTickType xTicksToWait )\r
{\r
portTickType xTimeToWake;\r
\r
}\r
/*-----------------------------------------------------------*/\r
\r
-void vTaskPlaceOnUnorderedEventList( xList * pxEventList, portTickType xItemValue, portTickType xTicksToWait )\r
+void vTaskPlaceOnUnorderedEventList( xList * pxEventList, portTickType xItemValue, const portTickType xTicksToWait )\r
{\r
portTickType xTimeToWake;\r
\r