문제

When you spawn a new vxworks task using taskSpawn, you get to set the task name:

char name[16] = "tFooBar";    
taskSpawn(name, 100, VX_FP_TASK,STACK_SIZE,  foo, 0,0,0,0,0,0,0,0);

You can do this both to spawn a new task within the kernel or within an RTP. What I cant figure out is how to set the task name of the initial RTP task, which appears to always be allocated iMyRtp (assuming the RTP is MyRtp.vxe).

I cant believe this isn't possible, so what am I missing?

도움이 되었습니까?

해결책 2

One option is to just spawn a new, named, task immediately on entry to the RTP, and perform the work in this task.

The Initial task should then be exited using taskExit() to ensure that the RTP is not removed.

다른 팁

This is how it is hard coded in the OS code. I'm sure you will be able to change the task name if you have access and willing to change the OS code. Any specific reason you wants to do this?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top