File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3831,16 +3831,16 @@ void vTaskSuspendAll( void )
3831
3831
3832
3832
if ( xSchedulerRunning != pdFALSE )
3833
3833
{
3834
- /* This must never be called from inside a critical section. */
3835
- configASSERT ( portGET_CRITICAL_NESTING_COUNT () == 0 );
3836
-
3837
3834
/* Writes to uxSchedulerSuspended must be protected by both the task AND ISR locks.
3838
3835
* We must disable interrupts before we grab the locks in the event that this task is
3839
3836
* interrupted and switches context before incrementing uxSchedulerSuspended.
3840
3837
* It is safe to re-enable interrupts after releasing the ISR lock and incrementing
3841
3838
* uxSchedulerSuspended since that will prevent context switches. */
3842
3839
ulState = portSET_INTERRUPT_MASK ();
3843
3840
3841
+ /* This must never be called from inside a critical section. */
3842
+ configASSERT ( portGET_CRITICAL_NESTING_COUNT () == 0 );
3843
+
3844
3844
/* portSOFRWARE_BARRIER() is only implemented for emulated/simulated ports that
3845
3845
* do not otherwise exhibit real time behaviour. */
3846
3846
portSOFTWARE_BARRIER ();
You can’t perform that action at this time.
0 commit comments