On 4/10/2011 06:37, Frank Church wrote:

What is the purpose of the while not Terminated in a threads execute loop?
If a thread is doing its own thing and knows when or not it has finished what is the purpose of the while not Terminated

Your thread is busy chewing up processor time and plans to do this until eternity. Now the user has different plans and decides to close your application. The problem is that the application can not terminate while your thread is chewing up processor time so your application says: "Hey thread, please terminate".

If all of your *while* statements have a not(Terminated) and your *until* statements include a Terminated then your thread will stop and your application will shut down like the user will be happy.
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to