No Ctx Sw if current task is highest rdy中的No Ctx Sw是什么意思?
No Ctx Sw if current task is highest rdy中的No Ctx Sw是什么意思?
代码如下:
if (OSPrioHighRdy != OSPrioCur) /* No Ctx Sw if current task is highest rdy */
{
#if OS_TASK_PROFILE_EN > 0u
OSTCBHighRdy->OSTCBCtxSwCtr++;/* Inc. # of context switches to this task */
#endif
OSCtxSwCtr++;/* Increment context switch counter */
#if OS_TASK_CREATE_EXT_EN > 0u
#if defined(OS_TLS_TBL_SIZE) && (OS_TLS_TBL_SIZE > 0u)
OS_TLS_TaskSw();
#endif
#endif
感谢
页:
[1]