mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-10 08:07:46 -04:00
Fix format
This commit is contained in:
parent
21c9c6a149
commit
d1e0919dc2
1 changed files with 3 additions and 0 deletions
3
tasks.c
3
tasks.c
|
@ -881,6 +881,7 @@ static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB ) PRIVILEGED_FUNCTION;
|
|||
configASSERT( portGET_CRITICAL_NESTING_COUNT() > 0U );
|
||||
|
||||
#if ( configRUN_MULTIPLE_PRIORITIES == 0 )
|
||||
|
||||
/* No task should yield for this one if it is a lower priority
|
||||
* than priority level of currently ready tasks. */
|
||||
if( pxTCB->uxPriority >= uxTopReadyPriority )
|
||||
|
@ -3359,10 +3360,12 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,
|
|||
configASSERT( xTaskToResume );
|
||||
|
||||
#if ( configNUMBER_OF_CORES == 1 )
|
||||
|
||||
/* The parameter cannot be NULL as it is impossible to resume the
|
||||
* currently executing task. */
|
||||
if( ( pxTCB != pxCurrentTCB ) && ( pxTCB != NULL ) )
|
||||
#else
|
||||
|
||||
/* The parameter cannot be NULL as it is impossible to resume the
|
||||
* currently executing task. It is also impossible to resume a task
|
||||
* that is actively running on another core but it is not safe
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue