第四章講了調度器和任務切換
調度器和任務切換
爲了保證操作系統和任務安全運行,有時候需要
void vTaskSuspendAll( void )
{
/* A critical section is not required as the variable is of type
BaseType_t. Please read Richard Barry's reply in the following link to a
post in the FreeRTOS support forum before reporting this as a bug! -
http://goo.gl/wu4acr */
++uxSchedulerSuspended;
portMEMORY_BARRIER();
}