[TD]prevent running threads on object delete
This commit is contained in:
committed by
WandererFan
parent
e97b95341a
commit
6f646a8d2d
@@ -149,6 +149,11 @@ DrawViewSection::DrawViewSection() :
|
||||
|
||||
DrawViewSection::~DrawViewSection()
|
||||
{
|
||||
//don't destroy this object while it has dependent threads running
|
||||
if (m_cutFuture.isRunning()) {
|
||||
Base::Console().Message("%s is waiting for tasks to complete\n", getNameInDocument());
|
||||
m_cutFuture.waitForFinished();
|
||||
}
|
||||
}
|
||||
|
||||
short DrawViewSection::mustExecute() const
|
||||
|
||||
Reference in New Issue
Block a user