金牌会员
 
- 积分
- 1501
- 金钱
- 1501
- 注册时间
- 2021-8-10
- 在线时间
- 273 小时
|
5金钱
f( pxTCB == pxCurrentTCB )
{
if( xSchedulerRunning != pdFALSE )
{
configASSERT( uxSchedulerSuspended == 0 );
portYIELD_WITHIN_API(); (6)
}
else
{
if( listCURRENT_LIST_LENGTH( &xSuspendedTaskList ) ==\ (7)
uxCurrentNumberOfTasks )
{
pxCurrentTCB = NULL; (8)
}
else
{
vTaskSwitchContext(); (9)
}
}
}
else
{
mtCOVERAGE_TEST_MARKER();
}
}
这个变量xSchedulerRunning和uxSchedulerSuspended这俩变量有点迷糊,任务调度器运行状态和任务调度器是否被挂起,哪位大佬能给简单解答疑惑
|
|