** This is part of the CTSim program
** Copyright (C) 1983-2001 Kevin Rosenberg
**
-** $Id: threadrecon.cpp,v 1.8 2001/02/25 06:32:12 kevin Exp $
+** $Id: threadrecon.cpp,v 1.9 2001/02/25 07:36:26 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
while (reconSupervisor.anyWorkersRunning()) {
Sleep(50);
- Yield();
+ reconSupervisor.ProcessPendingEvents ();
}
return reinterpret_cast<wxThread::ExitCode>(0);
return reinterpret_cast<wxThread::ExitCode>(-1);
}
pReconstructor->reconstructView (iUnit + m_iStartUnit, 1);
- wxPostEvent (m_pSupervisor, eventProgress);
+ m_pSupervisor->AddPendingEvent (eventProgress);
}
pReconstructor->postProcessing();
-
- wxPostEvent (m_pSupervisor, eventDone);
-
delete pReconstructor;
- return reinterpret_cast<wxThread::ExitCode>(0);
+
+ wxPostEvent (m_pSupervisor, eventDone);
+
+ return reinterpret_cast<wxThread::ExitCode>(0);
}
void