E
Eran.Yasso
Hi,
Is there a way to stop a loop running in a thread using bool?
What i mean is:
i have two classes.
When i click button(classA) on, i starts running s thread(classB) which
is located on other class.
The threas(while loop) runs while bool is equal to true.
when i click second button(classA), it sets that bool to fasle.
The loop(classB), sees that the bool is false, exits the loop and
terminating the thread.
thanks.
Is there a way to stop a loop running in a thread using bool?
What i mean is:
i have two classes.
When i click button(classA) on, i starts running s thread(classB) which
is located on other class.
The threas(while loop) runs while bool is equal to true.
when i click second button(classA), it sets that bool to fasle.
The loop(classB), sees that the bool is false, exits the loop and
terminating the thread.
thanks.