How to kill a thread?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
waxi_1305956
Level 3
Level 3

Hi:

   

  I want to kill a thread which is in not in the idle state,how can i to do this?

0 Likes
3 Replies
Anonymous
Not applicable

CyU3PThreadDestroy

0 Likes

I have tried,but this function can kill a thread only the thread is in idle state,i want to kill it while this thread is runing. 

0 Likes
Anonymous
Not applicable

You have to call the CyU3PThreadRelinquish  to bring it to ready state and then call the CyU3PThreadDestroy from another thread.

   

Regards,

   

-Madhu Sudhan

0 Likes