-
Notifications
You must be signed in to change notification settings - Fork 613
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
[🛠️] Change Command Scheduler to fix iterator invalidation bugs and get rid of "hacks" in C++ and Java #6593
Open
kytpbs
wants to merge
17
commits into
wpilibsuite:main
Choose a base branch
from
kytpbs:Fix-cpp-commandScheduler
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+214
−87
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
184566c
fix scheduledCommands.erase() being called in the same sets iterator
kytpbs 9c94322
added comment explaning why we defer from java
kytpbs cd753b1
Formatting fixes
github-actions[bot] 23547a2
use small Vector instead
kytpbs ec62f62
create a new SmallSet instead
kytpbs dd60ba0
create a copy of the `m_scheduledCommands`
kytpbs 35786d8
remove concurrent avoiding modification member variables (C++)
kytpbs a905f7b
remove concurrent avoiding modification member variables (Java)
kytpbs ede024e
Formatting fixes
github-actions[bot] a7702d0
remove iterator as we don't need it
kytpbs 2f5c5c4
Formatting fixes
github-actions[bot] 7149e43
add a test to cancel the next command from the first
kytpbs 7c7ca2e
add better error messages to C++ tests
kytpbs 9154940
Optimize copying `m_scheduledCommands`
kytpbs 35b02b9
add a test checking if command is scheduled on end() call
kytpbs 0f5c8e6
Add test for scheduling a command within a command
kytpbs 93ad7b8
Refactor tests according to reviews
kytpbs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes the comment easier to read.