** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: docs.cpp,v 1.29 2001/02/25 10:52:55 kevin Exp $
+** $Id: docs.cpp,v 1.30 2001/02/25 16:21:36 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
m_criticalSection.Leave();
while (m_vecpBackgroundSupervisors.size() > 0) {
- ::wxUsleep(50);
::wxYield();
+ ::wxUsleep(50);
}
}
IMPLEMENT_DYNAMIC_CLASS(PhantomFileDocument, BackgroundProcessingTask)
+PhantomFileDocument::~PhantomFileDocument()
+{
+ cancelRunningTasks();
+}
+
bool
PhantomFileDocument::OnOpenDocument(const wxString& filename)
{