This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] 编译器/TM4C1290NCPDT:Task_delete (Task_self ());使我的系统崩溃

Guru**** 3040470 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/862690/compiler-tm4c1290ncpdt-task_delete-task_self-crash-my-system

器件型号:TM4C1290NCPDT

工具/软件:TI C/C++编译器

你(们)好

为什么 Task_delete (Task_self ());正在挤压我的系统

我验证了 Task_self()任务与 tasl_create 处理程序相同,为什么我的系统在调用 Task_delete 时会被 Task_create ctated 的调用挤压?

谢谢

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Sergey、

    您从何处调用 Task_delete? 您无法删除自己? 必须从其他任务调用 Task_delete。 注:如果 在.cfg 中将 Task.deleteTerminatedTasks 设置为 true、内核将为您清理终止的任务。

    Todd