Skip to content

Commit

Permalink
Mark WorkerInPath::runWorkerAsync() as noexcept
Browse files Browse the repository at this point in the history
Path::runNextWorkerAsync() pretty much assumes the runWorkerAsync()
doesn't throw. runNextWorkerAsync() needs to schedule all eligible
workers for the rest of the system to behave correctly.
  • Loading branch information
makortel committed Apr 18, 2024
1 parent 503657b commit 332c1a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FWCore/Framework/interface/WorkerInPath.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace edm {
typename T::TransitionInfoType const&,
ServiceToken const&,
StreamID,
typename T::Context const*);
typename T::Context const*) noexcept;

bool checkResultsOfRunWorker(bool wasEvent);

Expand Down Expand Up @@ -109,7 +109,7 @@ namespace edm {
typename T::TransitionInfoType const& info,
ServiceToken const& token,
StreamID streamID,
typename T::Context const* context) {
typename T::Context const* context) noexcept {
if constexpr (T::isEvent_) {
++timesVisited_;
}
Expand Down

0 comments on commit 332c1a4

Please sign in to comment.