只有当doSomething也完成其操作,调用vPortExitCritical,并将uxCriticalNesting减少到0时,中断才会被重新启用。 任务调度器的挂起和恢复代码理解 voidvTaskSuspendAll(void){/* A critical section is not required as the variable is of type * BaseType_t. Please read Richard Barry's reply in the following ...