Update hello_world.c
把动态创建函数打印部分,the dynamic created task增加序号3,修改成上下文一致的task3(dynamic created),更便于理解
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user