We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2eb2d65 commit 78c8bbdCopy full SHA for 78c8bbd
portable/MSVC-MingW/port.c
@@ -353,12 +353,12 @@ BaseType_t xPortStartScheduler( void )
353
pxThreadState = ( ThreadState_t * ) *( ( size_t * ) pxCurrentTCB );
354
ulCriticalNesting = portNO_CRITICAL_NESTING;
355
356
- /* Start the first task. */
357
- ResumeThread( pxThreadState->pvThread );
358
-
359
/* The scheduler is now running. */
360
xPortRunning = pdTRUE;
361
+ /* Start the first task. */
+ ResumeThread( pxThreadState->pvThread );
+
362
/* Handle all simulated interrupts - including yield requests and
363
* simulated ticks. */
364
prvProcessSimulatedInterrupts();
0 commit comments