Update hello_world.c

把动态创建函数打印部分,the dynamic created task增加序号3,修改成上下文一致的task3(dynamic created),更便于理解
This commit is contained in:
David Lin
2020-10-13 22:43:24 +08:00
committed by GitHub
parent eb56d42f40
commit d980bdb975

View File

@@ -30,7 +30,7 @@ void task1(void *arg)
#if TOS_CFG_TASK_DYNAMIC_CREATE_EN > 0u
if (count++ == 3) {
printf("###I am task1, kill the dynamic created task\r\n");
printf("###I am task1, kill the task3(dynamic created)\r\n");
osThreadTerminate(task_dyn_created);
}
#endif