Skip to content

Commit

Permalink
Merge pull request #1010 from DARMA-tasking/1003-nested-sched
Browse files Browse the repository at this point in the history
#1003 schedule- remove idle-assert
  • Loading branch information
lifflander authored Sep 1, 2020
2 parents 2fc7655 + de084ef commit f9b7e74
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/vt/scheduler/scheduler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -268,15 +268,10 @@ void Scheduler::runSchedulerWhile(std::function<bool()> cond) {
// as the parent context is "not idle". Likewise, no 'between scheduler'
// event is started.

vtAssert(
action_depth_ == 0 or not is_idle,
"Nested schedulers never expected from idle context"
);

triggerEvent(SchedulerEventType::BeginSchedulerLoop);

// When resuming a top-level scheduler, ensure to immediately enter
// an idle state if such applies.
// Ensure to immediately enter an idle state if such applies.
// The scheduler call ends idle as picking up work.
if (not is_idle and work_queue_.empty()) {
is_idle = true;
triggerEvent(SchedulerEventType::BeginIdle);
Expand Down

0 comments on commit f9b7e74

Please sign in to comment.