r579: no message
[ctsim.git] / src / backgroundsupr.cpp
index c0326d68522968d0bcc21453823053a7c8b6c57b..2b8c0491cd2f034111f014d8a77d95701c750aa5 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2001 Kevin Rosenberg
 **
-**  $Id: backgroundsupr.cpp,v 1.1 2001/02/25 06:32:12 kevin Exp $
+**  $Id: backgroundsupr.cpp,v 1.2 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
@@ -93,7 +93,7 @@ BackgroundSupervisor::~BackgroundSupervisor()
 
   while (m_bBackgroundTaskAdded) {
     Sleep(50);
-    ::wxYield();
+    ProcessPendingEvents();
   }
 
   delete m_pTimer;
@@ -112,7 +112,7 @@ BackgroundSupervisor::deleteAnyWorkers()
 
   while (m_iRunning > 0) {
     Sleep(50);
-    ::wxYield();
+    ProcessPendingEvents();
   }
 }