Skip to content

Commit

Permalink
#649: LBManager: Start rearranging to eliminate use of addAction
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilMiller committed Jul 28, 2020
1 parent c69d6b5 commit 0d46659
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vt/vrt/collection/balance/lb_invoke/lb_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ LBManager::makeLB(MsgSharedPtr<StartLBMsg> msg) {
auto base_proxy = proxy.template registerBaseCollective<lb::BaseLB>();
auto phase = msg->getPhase();

destroy_lb_ = [proxy]{ proxy.destroyCollective(); };

EpochType model_epoch = theTerm()->makeEpochCollective("LBManager::model_epoch");
EpochType balance_epoch = theTerm()->makeEpochCollective("LBManager::balance_epoch");
EpochType migrate_epoch = theTerm()->makeEpochCollective("LBManager::migrate_epoch");
Expand Down Expand Up @@ -189,8 +191,6 @@ LBManager::makeLB(MsgSharedPtr<StartLBMsg> msg) {
this->finishedRunningLB(phase);
});

destroy_lb_ = [proxy]{ proxy.destroyCollective(); };

runSchedulerThrough(migrate_epoch);

return proxy;
Expand Down

0 comments on commit 0d46659

Please sign in to comment.