Jump to content

[SOLVED] Thread termination


photo

Recommended Posts

Hello.

 

How can i terminate threads that i initiated using:

thread("anyThreadFunction") ?

 

How can i handle them generally ? (count, duplicate, etc)

 

Thank you.

Link to comment

Hi George,

 

Script threads automatically terminate themselves after function execution, so if you, for example, have an infinite loop inside that function, simply use 'return' statement. There is no 'terminateThread'-like functions though, you should handle this by yourself if you need to.

 

Could you specify your question about thread handling? What is your use cases?

Link to comment

Hello.

 

First of all thank you for your reply.

 

I was wondering if there is any way to keep track of the treads i have raised.

I dont need it at the moment but i didnt find any reference in the documentation about threads.

 

Thank you for your time.

Link to comment
×
×
  • Create New...