380091044 发表于 2024-2-23 17:09:11

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

380091044 发表于 2024-2-23 21:35:17

感谢
页: [1]
查看完整版本: No Ctx Sw if current task is highest rdy中的No Ctx Sw是什么意思?