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

We do not need to account for drift when we USE_WINDOWS_EVENTS #1666

Merged
merged 4 commits into from
Oct 2, 2023

Conversation

pierreluctg
Copy link
Collaborator

@pierreluctg pierreluctg commented Sep 27, 2023

When using USE_WINDOWS_EVENTS the waitable timer will be fired at fixed rate, we do not need to account for the drift.
The change makes it wait for the timer to be in signaled state only.
Previous code was causing multiple frames to be send back to back without delay.

@pierreluctg pierreluctg marked this pull request as ready for review September 27, 2023 23:48
@pierreluctg pierreluctg changed the title We do not need to account for drift when USE_WINDOWS_EVENTS We do not need to account for drift when we USE_WINDOWS_EVENTS Sep 28, 2023
@pierreluctg
Copy link
Collaborator Author

@zariiii9003 please review

can/broadcastmanager.py Outdated Show resolved Hide resolved
@pierreluctg pierreluctg merged commit 3c3f123 into develop Oct 2, 2023
55 checks passed
@pierreluctg pierreluctg deleted the USE_WINDOWS_EVENTS branch October 2, 2023 22:22
@pierreluctg pierreluctg added this to the Next Release milestone Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants