/* When switching threads, Windows does not always seem to run the selected\r
thread immediately. This function can be called to check if the thread\r
that is currently running is the thread that is responsible for executing\r
- the task selected by the real time scheduler. */\r
+ the task selected by the real time scheduler. The demo project for the Win32\r
+ port calls this function from the trace macros which are seeded throughout \r
+ the real time kernel code at points where something significant occurs.\r
+ Adding this functionality allows all the standard tests to pass, but users\r
+ should still be aware that extra calls to this function could be required\r
+ if their application requires absolute fixes and predictable sequencing (as\r
+ the port tests do). This is still a simulation - not the real thing! */\r
if( xTaskGetSchedulerState() != taskSCHEDULER_NOT_STARTED )\r
{\r
+ /* Obtain the real time task to Win32 mapping state information. */\r
pxThreadState = ( xThreadState * ) *( ( unsigned long * ) pxCurrentTCB );\r
\r
if( GetCurrentThreadId() != pxThreadState->ulThreadId )\r