mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-13 08:52:14 -05:00
Remove waitUntilWorkIsDone as this can cause eternal loops
This commit is contained in:
1 parent
8ff8264d11
commit
1cbdbfa7df
4 files changed
-19
No files matched your search
@@ -81,8 +81,6 @@ void RiaPlotWindowRedrawScheduler::schedulePlotWidgetReplot( RiuPlotWidget* plot
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RiaPlotWindowRedrawScheduler::clearAllScheduledUpdates()
|
void RiaPlotWindowRedrawScheduler::clearAllScheduledUpdates()
|
||||||
{
|
{
|
||||||
waitUntilWorkIsDone();
|
|
||||||
|
|
||||||
m_plotWidgetsToReplot.clear();
|
m_plotWidgetsToReplot.clear();
|
||||||
m_plotPagesToUpdate.clear();
|
m_plotPagesToUpdate.clear();
|
||||||
m_plotBooksToUpdate.clear();
|
m_plotBooksToUpdate.clear();
|
||||||
|
|||||||
@@ -80,17 +80,3 @@ void RiaScheduler::startTimer( int msecs )
|
|||||||
m_updateTimer->start( msecs );
|
m_updateTimer->start( msecs );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
///
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
void RiaScheduler::waitUntilWorkIsDone()
|
|
||||||
{
|
|
||||||
if ( m_updateTimer )
|
|
||||||
{
|
|
||||||
while ( m_updateTimer->isActive() )
|
|
||||||
{
|
|
||||||
QCoreApplication::processEvents();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -39,7 +39,6 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
void startTimer( int msecs );
|
void startTimer( int msecs );
|
||||||
void waitUntilWorkIsDone();
|
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void slotUpdateScheduledItemsWhenReady();
|
void slotUpdateScheduledItemsWhenReady();
|
||||||
|
|||||||
@@ -62,8 +62,6 @@ void RiaViewRedrawScheduler::scheduleDisplayModelUpdateAndRedraw( Rim3dView* res
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RiaViewRedrawScheduler::clearViewsScheduledForUpdate()
|
void RiaViewRedrawScheduler::clearViewsScheduledForUpdate()
|
||||||
{
|
{
|
||||||
waitUntilWorkIsDone();
|
|
||||||
|
|
||||||
m_resViewsToUpdate.clear();
|
m_resViewsToUpdate.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user