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

McuManager Re-Order Buffer is now its own Component #83

Merged
merged 1 commit into from
Sep 29, 2022

Conversation

dinesharjani
Copy link
Contributor

By pulling the re-order portion of the code into its own structure, and a struct as that as well, we discovered that the actual code was going on recursively, so reading / modifying the arrays without any form of locking. So we use DispatchQueue sync() now to protect this state. I think the speed will be a bit slower, but overall the code should be safer.

By pulling the re-order portion of the code into its own structure, and a struct as that as well, we discovered that the actual code was going on recursively, so reading / modifying the arrays without any form of locking. So we use DispatchQueue sync() now to protect this state. I think the speed will be a bit slower, but overall the code should be safer.
@dinesharjani dinesharjani added the enhancement New feature or request label Sep 29, 2022
@dinesharjani dinesharjani self-assigned this Sep 29, 2022
@dinesharjani dinesharjani added the bug Something isn't working label Sep 29, 2022
@dinesharjani dinesharjani merged commit bac0791 into master Sep 29, 2022
@dinesharjani dinesharjani deleted the robbuffer-component branch September 29, 2022 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant