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

ubxlib: Reflect upstream new uTimeout API #220

Merged
merged 1 commit into from
May 10, 2024
Merged

ubxlib: Reflect upstream new uTimeout API #220

merged 1 commit into from
May 10, 2024

Conversation

rexut
Copy link
Member

@rexut rexut commented May 9, 2024

A new common API, uTimeout [in ubxlib commit 79e808e], was added and all timeouts are routed through it. This API performs time comparisons with unsigned 32-bit arithmetic to ensure that timeouts expire correctly if they happen to cross the 32-bit wrap point, which will occur every 50 days for a millisecond tick; otherwise there were instances where a timeout could potentially get "stuck" for 25 days (the unsigned 32-bit wrap length for a millisecond tick).

See also ubxlib PR-225.

A new common API, uTimeout [in ubxlib commit 79e808e], was added and
all timeouts are routed through it. This API performs time comparisons
with unsigned 32-bit arithmetic to ensure that timeouts expire correctly
if they happen to cross the 32-bit wrap point, which will occur every
50 days for a millisecond tick; otherwise there were instances where a
timeout could potentially get "stuck" for 25 days (the unsigned 32-bit
wrap length for a millisecond tick).

See also ubxlib PR-225.

Signed-off-by: Stephan Linz <[email protected]>
@rexut rexut added this to the v3.6.1 milestone May 9, 2024
@rexut rexut self-assigned this May 9, 2024
@rexut rexut linked an issue May 9, 2024 that may be closed by this pull request
@rexut rexut merged commit 9f6b959 into v3.6-branch May 10, 2024
9 checks passed
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.

[BUG] ubxlib: missing header u_timeout.h
2 participants