Taks kill in MQX

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Taks kill in MQX

636 次查看
sarath_gs
Contributor II

I want to know about the status of a task which is running in MQX is there any functions for this ? also what is the task kill function in MQX? in linux pthread_kill , like is there any function in MQX? 

0 项奖励
1 回复

576 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Sarath:

I would suggest you check the API

_task_get_td.

You can get the task descriptor , then you can check the state from the task descriptor.

2.1.274 _task_get_td
Gets a pointer to the task descriptor for the task ID.
Prototype
source\kernel\task.c
void *_task_get_td(
_task_id task_id)

For the task kill function, you can check

2.1.260 _task_destroy
Destroys the task.
Prototype
source\kernel\task.c
_mqx_uint _task_destroy(
_task_id task_id)

I hope it helps

Regards

Daniel

0 项奖励