Skip to content

Commit

Permalink
#1941: modify epoch argument passing
Browse files Browse the repository at this point in the history
  • Loading branch information
stmcgovern authored and cz4rs committed Sep 28, 2022
1 parent 01d0e68 commit b211db0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/vt/termination/termination.h
Original file line number Diff line number Diff line change
Expand Up @@ -797,13 +797,13 @@ struct TerminationDetector :

public:
inline EpochType getEpoch() const;
inline void pushEpoch(EpochType const& epoch);
inline EpochType popEpoch(EpochType const& epoch = no_epoch);
inline void pushEpoch(EpochType epoch);
inline EpochType popEpoch(EpochType epoch = no_epoch);

inline void pushEpochFast(EpochType epoch) {
epoch_stack_.push(epoch.get());
}
inline void popEpochFast(EpochType epoch) {
inline void popEpochFast() {
epoch_stack_.pop();
}

Expand Down
4 changes: 2 additions & 2 deletions src/vt/termination/termination.impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ inline EpochType TerminationDetector::getEpoch() const {
);
return epoch_stack_.size() ? EpochType{epoch_stack_.top()} : term::any_epoch_sentinel;
}
inline void TerminationDetector::pushEpoch(EpochType const& epoch) {
inline void TerminationDetector::pushEpoch(EpochType epoch) {
/*
* pushEpoch(epoch) pushes any epoch onto the local stack iff epoch !=
* no_epoch; the epoch stack includes all locally pushed epochs and the
Expand All @@ -159,7 +159,7 @@ inline EpochType TerminationDetector::getEpoch() const {
}
}

inline EpochType TerminationDetector::popEpoch(EpochType const& epoch) {
inline EpochType TerminationDetector::popEpoch(EpochType epoch) {
/*
* popEpoch(epoch) shall remove the top entry from epoch_size_, iif the size
* is non-zero and the `epoch' passed, if `epoch != no_epoch', is equal to the
Expand Down

0 comments on commit b211db0

Please sign in to comment.