X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=src%2Fbackgroundsupr.cpp;h=4083c8220f8647253b19f44aa124c2bd8eae9bb3;hp=da2120db352c8b13c0bb3454f653527de7fdce74;hb=a97f1819c4f24321ba8d54a16f6534ee94404d26;hpb=8bf5da21ee7bc7417c385da8c4fb0b67025804fa diff --git a/src/backgroundsupr.cpp b/src/backgroundsupr.cpp index da2120d..4083c82 100644 --- a/src/backgroundsupr.cpp +++ b/src/backgroundsupr.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2001 Kevin Rosenberg ** -** $Id: backgroundsupr.cpp,v 1.4 2001/02/25 08:43:03 kevin Exp $ +** $Id: backgroundsupr.cpp,v 1.7 2001/02/25 19:24:01 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 @@ -74,7 +74,7 @@ BackgroundSupervisor::BackgroundSupervisor (wxFrame* pParentFrame, wxDocument* p wxEvtHandler() { m_iNumThreads = theApp->getNumberCPU(); - // ++m_iNumThreads; +// ++m_iNumThreads; m_vecpThreads.reserve (m_iNumThreads); for (int iThread = 0; iThread < m_iNumThreads; iThread++) @@ -92,7 +92,7 @@ BackgroundSupervisor::~BackgroundSupervisor() } while (m_bBackgroundTaskAdded) { - Sleep(50); + m_pMyThread->Sleep(50); ProcessPendingEvents(); } @@ -113,7 +113,7 @@ BackgroundSupervisor::deleteWorkers() } while (m_iRunning > 0) { - Sleep(50); + m_pMyThread->Sleep(50); ProcessPendingEvents(); } m_iRunning = 0;