From: richardbarry Date: Sun, 21 Nov 2010 14:36:36 +0000 (+0000) Subject: Just changed the comments only for the Win32 port.c file. X-Git-Tag: V6.1.1~104 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4226a7a3a219544e8badaaa7ea0cdd12f8f5a892;p=freertos Just changed the comments only for the Win32 port.c file. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1153 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Source/portable/MSVC-MingW/port.c b/Source/portable/MSVC-MingW/port.c index 5446325c9..6d7c80b8c 100644 --- a/Source/portable/MSVC-MingW/port.c +++ b/Source/portable/MSVC-MingW/port.c @@ -546,9 +546,16 @@ xThreadState *pxThreadState; /* When switching threads, Windows does not always seem to run the selected thread immediately. This function can be called to check if the thread that is currently running is the thread that is responsible for executing - the task selected by the real time scheduler. */ + the task selected by the real time scheduler. The demo project for the Win32 + port calls this function from the trace macros which are seeded throughout + the real time kernel code at points where something significant occurs. + Adding this functionality allows all the standard tests to pass, but users + should still be aware that extra calls to this function could be required + if their application requires absolute fixes and predictable sequencing (as + the port tests do). This is still a simulation - not the real thing! */ if( xTaskGetSchedulerState() != taskSCHEDULER_NOT_STARTED ) { + /* Obtain the real time task to Win32 mapping state information. */ pxThreadState = ( xThreadState * ) *( ( unsigned long * ) pxCurrentTCB ); if( GetCurrentThreadId() != pxThreadState->ulThreadId )