freertos源码解析-5调度器控制

第四章讲了调度器和任务切换
调度器和任务切换

为了保证操作系统和任务安全运行,有时候需要

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();
}

你可能感兴趣的:(freertos)