AnsweredAssumed Answered

When to call DestroyThread()?

Question asked by MattZ on Jun 25, 2014
Latest reply on Jul 1, 2014 by SFernandez

Hi All,

 

I understand from the VDK documentation that a thread will be destroyed and cleaned up by VDK if the thread's Run function ever completes. Does this imply that there is no need to explicitly call DestroyThread() if the Run function returns? If so, when would I want to call DestroyThread() explicitly?

 

Also, what happens if I do call DestroyThread while the Run function is running with a while(1) loop?

 

thanks in advance

-Matt

Outcomes