mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Fix in tasks.c related to https://sourceforge.net/tracker/?func=detail&aid=3295065&group_id=111543&atid=659633
This commit is contained in:
parent
6d9cd6ff47
commit
4de76dbc82
|
@ -944,9 +944,9 @@ tskTCB * pxNewTCB;
|
||||||
/* The scheduler is not running, but the task that was pointed
|
/* The scheduler is not running, but the task that was pointed
|
||||||
to by pxCurrentTCB has just been suspended and pxCurrentTCB
|
to by pxCurrentTCB has just been suspended and pxCurrentTCB
|
||||||
must be adjusted to point to a different task. */
|
must be adjusted to point to a different task. */
|
||||||
if( uxCurrentNumberOfTasks == ( unsigned portBASE_TYPE ) 1U )
|
if( listCURRENT_LIST_LENGTH( &xSuspendedTaskList ) == uxCurrentNumberOfTasks )
|
||||||
{
|
{
|
||||||
/* No other tasks are defined, so set pxCurrentTCB back to
|
/* No other tasks are ready, so set pxCurrentTCB back to
|
||||||
NULL so when the next task is created pxCurrentTCB will
|
NULL so when the next task is created pxCurrentTCB will
|
||||||
be set to point to it no matter what its relative priority
|
be set to point to it no matter what its relative priority
|
||||||
is. */
|
is. */
|
||||||
|
|
Loading…
Reference in a new issue