Skip to content

Commit

Permalink
#1943: add asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
stmcgovern authored and cz4rs committed Sep 28, 2022
1 parent 770239d commit 26933b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/vt/scheduler/suspended_units.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ void SuspendedUnits::addSuspended(
detail::SuspendedRunnable{std::move(runnable), p}
)
);
#else
vtAssert(false, "Invalid code path");
#endif
}

Expand All @@ -71,6 +73,8 @@ void SuspendedUnits::resumeRunnable(ThreadIDType tid) {
auto p = iter->second.priority_;
theSched()->enqueue(p, std::move(r));
units_.erase(iter);
#else
vtAssert(false, "Invalid code path");
#endif
}

Expand Down

0 comments on commit 26933b6

Please sign in to comment.