X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=src%2Fthreadrecon.cpp;h=53d1ef45cbfb5e6a17e1803e8b217a416fc43555;hp=75861c492f3f6a8adb7cbab7fe5a1e9396e94383;hb=8bf5da21ee7bc7417c385da8c4fb0b67025804fa;hpb=c7435da167c4cec94d9f2da0410b5f544bb4c54d diff --git a/src/threadrecon.cpp b/src/threadrecon.cpp index 75861c4..53d1ef4 100644 --- a/src/threadrecon.cpp +++ b/src/threadrecon.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2001 Kevin Rosenberg ** -** $Id: threadrecon.cpp,v 1.10 2001/02/25 08:00:57 kevin Exp $ +** $Id: threadrecon.cpp,v 1.11 2001/02/25 08:43:03 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -84,9 +84,9 @@ ReconstructorSupervisorThread::Entry() wxPostEvent( theApp->getMainFrame(), eventLog ); // send log event } - while (reconSupervisor.anyWorkersRunning()) { + while (! reconSupervisor.workersDeleted()) { Sleep(50); - reconSupervisor.ProcessPendingEvents (); + reconSupervisor.ProcessPendingEvents(); } return reinterpret_cast(0); @@ -127,8 +127,7 @@ ReconstructorSupervisor::~ReconstructorSupervisor() for (int i = 0; i < getNumWorkers(); i++) { delete m_vecpChildImageFile[i]; m_vecpChildImageFile[i] = NULL; - } - + } } BackgroundWorkerThread*