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

Improve behaviour when frames are still in flight #127

Merged
merged 6 commits into from
Nov 2, 2023
Merged

Conversation

jamwaffles
Copy link
Collaborator

Prior to this PR, if the frame slot at the N + 1th index was still occupied, an error would occur. Now, the PDU loop storage code will loop through the entire slot space up to 2 times looking for a free slot to use.

This mitigates situations where a frame from a previous cycle or another thread is still marked as in use (e.g. because its payload data is still held). Now, the PDU loop will skip over that slot and go looking for the next free one. Not a total fix, but much improved when testing with 11 threads - one tx/rx and 10 others running tasks simultaneously.

Also adds a bunch of logging.

@jamwaffles jamwaffles merged commit 8c1123f into master Nov 2, 2023
7 checks passed
@jamwaffles jamwaffles deleted the rx-reliability branch November 2, 2023 14:02
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.

1 participant