mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Performance : Simplify use of update schedulers
Extract code to RiaScheduler Add PlotCollectionScheduler
This commit is contained in:
@@ -19,6 +19,8 @@
|
||||
|
||||
#include "RimMainPlotCollection.h"
|
||||
|
||||
#include "RiaPlotCollectionScheduler.h"
|
||||
|
||||
#include "PlotBuilderCommands/RicSummaryPlotBuilder.h"
|
||||
|
||||
#include "RimAbstractPlotCollection.h"
|
||||
@@ -340,10 +342,11 @@ void RimMainPlotCollection::updatePlotsWithFormations()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimMainPlotCollection::updatePlotsWithCompletions()
|
||||
void RimMainPlotCollection::scheduleUpdatePlotsWithCompletions()
|
||||
{
|
||||
std::vector<RimPlotCollection*> plotCollections = plotCollectionsWithCompletions();
|
||||
loadDataAndUpdatePlotCollections( plotCollections );
|
||||
|
||||
RiaPlotCollectionScheduler::instance()->schedulePlotCollectionUpdate( plotCollections );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user