attilio
June 11th, 2006, 10:05 AM
hey! have a little thread reference question.
My thread is created by mainThread referenced by, mainThread.t[0]
In the thread I want to set it as null in order to terminate it? Or is their no point setting it to null?
At the moment i am refencing a termination function within the thread that kills all arrays and thread variables and sets the thread to null with the following code:
t[this.i] = null; is that how I should do it? or is it not neccessary at all?
if it is is there a local reference rather than having to null the thread via mainThread? ie, this = null
also as I have many threads all contacting each other via mainThread will this cause a problem as they are all going via mainThread should 2 threads call mainThread at the same time?
My thread is created by mainThread referenced by, mainThread.t[0]
In the thread I want to set it as null in order to terminate it? Or is their no point setting it to null?
At the moment i am refencing a termination function within the thread that kills all arrays and thread variables and sets the thread to null with the following code:
t[this.i] = null; is that how I should do it? or is it not neccessary at all?
if it is is there a local reference rather than having to null the thread via mainThread? ie, this = null
also as I have many threads all contacting each other via mainThread will this cause a problem as they are all going via mainThread should 2 threads call mainThread at the same time?