[TD]use Label in waiting for thread message

This commit is contained in:
Wanderer Fan
2022-08-21 11:27:07 -04:00
committed by WandererFan
parent 1494b8288a
commit 4ad52a5778
3 changed files with 4 additions and 4 deletions

View File

@@ -111,7 +111,7 @@ DrawViewDetail::~DrawViewDetail()
{
//don't delete this object while it still has dependent tasks running
if (m_detailFuture.isRunning()) {
Base::Console().Message("%s is waiting for detail cut to finish\n", getNameInDocument());
Base::Console().Message("%s is waiting for detail cut to finish\n", Label.getValue());
m_detailFuture.waitForFinished();
}
}

View File

@@ -157,11 +157,11 @@ DrawViewPart::~DrawViewPart()
{
//don't delete this object while it still has dependent threads running
if (m_hlrFuture.isRunning()) {
Base::Console().Message("%s is waiting for HLR to finish\n", getNameInDocument());
Base::Console().Message("%s is waiting for HLR to finish\n", Label.getValue());
m_hlrFuture.waitForFinished();
}
if (m_faceFuture.isRunning()) {
Base::Console().Message("%s is waiting for face finding to finish\n", getNameInDocument());
Base::Console().Message("%s is waiting for face finding to finish\n", Label.getValue());
m_faceFuture.waitForFinished();
}
removeAllReferencesFromGeom();

View File

@@ -151,7 +151,7 @@ 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());
Base::Console().Message("%s is waiting for tasks to complete\n", Label.getValue());
m_cutFuture.waitForFinished();
}
}