// The main computation loop
while (true)
{
-
- if (runstate != RUN) pthread_exit(NULL); //Check whether the thread needs to exit
-
-
-
//Check whether the program should quit due to steps being computed, or a timeout
if (ExitCondition())
{
QuitProgram(false);
- continue; // The check at the start of the next loop will stop the thread
+ pthread_exit(NULL);
}
if (options.draw_graphics == false && options.verbosity != 0