@@ -95,7 +95,7 @@ typedef struct
95
95
/* Handle of the thread that executes the task. */
96
96
void * pvThread ;
97
97
98
- /* Event used to makes sure the thread does not execute past a yield point
98
+ /* Event used to make sure the thread does not execute past a yield point
99
99
between the call to SuspendThread() to suspend the thread and the
100
100
asynchronous SuspendThread() operation actually being performed. */
101
101
void * pvYieldEvent ;
@@ -394,7 +394,7 @@ CONTEXT xContext;
394
394
xInsideInterrupt = pdFALSE ;
395
395
WaitForMultipleObjects ( sizeof ( pvObjectList ) / sizeof ( void * ), pvObjectList , TRUE, INFINITE );
396
396
397
- /* Cannot be in a critical section to get here. Tasks that exist a
397
+ /* Cannot be in a critical section to get here. Tasks that exit a
398
398
critical section will block on a yield mutex to wait for an interrupt to
399
399
process if an interrupt was set pending while the task was inside the
400
400
critical section. xInsideInterrupt prevents interrupts that contain
@@ -456,12 +456,11 @@ CONTEXT xContext;
456
456
457
457
/* Ensure the thread is actually suspended by performing a
458
458
synchronous operation that can only complete when the thread is
459
- actually suspended. The below code asks for dummy register
460
- data. Experimentation shows that these two lines don't appear
459
+ actually suspended. The code below asks for dummy register
460
+ data. Experimentation shows that these two lines don't appear
461
461
to do anything now, but according to
462
462
https://devblogs.microsoft.com/oldnewthing/20150205-00/?p=44743
463
- they do - so as they do not harm (slight run-time hit) they have
464
- been left it. */
463
+ they do - so as they do not harm (slight run-time hit). */
465
464
xContext .ContextFlags = CONTEXT_INTEGER ;
466
465
( void ) GetThreadContext ( pxThreadState -> pvThread , & xContext );
467
466
@@ -599,7 +598,7 @@ ThreadState_t *pxThreadState = ( ThreadState_t *) *( ( size_t * ) pxCurrentTCB )
599
598
ReleaseMutex ( pvInterruptEventMutex );
600
599
if ( ulCriticalNesting == portNO_CRITICAL_NESTING )
601
600
{
602
- /* An interrupt was pended so ensure to block to alow it to
601
+ /* An interrupt was pended so ensure to block to allow it to
603
602
execute. In most cases the (simulated) interrupt will have
604
603
executed before the next line is reached - so this is just to make
605
604
sure. */
@@ -669,7 +668,7 @@ int32_t lMutexNeedsReleasing, lWaitForYield = pdFALSE;
669
668
pvInterruptEventMutex is released as it waits on both
670
669
pvInterruptEventMutex and pvInterruptEvent.
671
670
pvInterruptEvent is only set when the simulated
672
- interrupt is pendeded if the interrupt is pended
671
+ interrupt is pended if the interrupt is pended
673
672
from outside a critical section - hence it is set
674
673
here. */
675
674
SetEvent ( pvInterruptEvent );
0 commit comments