Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stopped flag is now set true after simulate_until loop is finished #656

Merged
merged 2 commits into from
Sep 14, 2021

Conversation

msteinsto
Copy link
Contributor

Possible fix to one of the issues described in #654 with the simulate_until() function not setting the stopped_ flag to true after the optional stop time has been reached, as if it was paused manually at the stop time

Copy link
Member

@kyllingstad kyllingstad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix looks good, but please remove the unnecessary space.

@@ -151,8 +151,10 @@ class execution::impl
do {
stepSize = step();
timer_.sleep(currentTime_);
} while (!stopped_ && !timed_out(endTime, currentTime_, stepSize));
return !stopped_;
} while (!stopped_ && !timed_out(endTime, currentTime_, stepSize));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only change in this line seems to be an additional space which isn't supposed to be there.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Space is removed in latest commit

Copy link
Member

@kyllingstad kyllingstad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@msteinsto msteinsto merged commit a2c204f into master Sep 14, 2021
@msteinsto msteinsto deleted the bug/654-simulate-until branch September 14, 2021 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants