vehicle_time: Deliver VehicleClock callbacks from a worker thread - #215
Open
florianfueller wants to merge 1 commit into
Open
florianfueller wants to merge 1 commit into
florianfueller wants to merge 1 commit into
Conversation
florianfueller
had a problem deploying
to
workflow-approval
September 8, 2026 18:24 — with
GitHub Actions
Error
florianfueller
had a problem deploying
to
workflow-approval
September 8, 2026 18:24 — with
GitHub Actions
Error
License Check Results🚀 The license check job ran with the Bazel command: bazel run //:license-checkStatus: Click to expand output |
florianfueller
force-pushed
the
feature/59-vehicle-clock-callback-delivery
branch
from
September 9, 2026 07:57
d4f4e67 to
143d1fb
Compare
florianfueller
had a problem deploying
to
workflow-approval
September 9, 2026 07:58 — with
GitHub Actions
Error
florianfueller
had a problem deploying
to
workflow-approval
September 9, 2026 07:58 — with
GitHub Actions
Error
florianfueller
force-pushed
the
feature/59-vehicle-clock-callback-delivery
branch
from
September 9, 2026 11:18
143d1fb to
d447876
Compare
florianfueller
had a problem deploying
to
workflow-approval
September 9, 2026 11:18 — with
GitHub Actions
Error
florianfueller
had a problem deploying
to
workflow-approval
September 9, 2026 11:18 — with
GitHub Actions
Error
florianfueller
force-pushed
the
feature/59-vehicle-clock-callback-delivery
branch
from
September 9, 2026 12:37
d447876 to
a816147
Compare
florianfueller
had a problem deploying
to
workflow-approval
September 9, 2026 12:38 — with
GitHub Actions
Error
florianfueller
had a problem deploying
to
workflow-approval
September 9, 2026 12:38 — with
GitHub Actions
Error
florianfueller
marked this pull request as ready for review
September 9, 2026 12:38
florianfueller
had a problem deploying
to
workflow-approval
September 9, 2026 18:58 — with
GitHub Actions
Error
florianfueller
had a problem deploying
to
workflow-approval
September 9, 2026 18:58 — with
GitHub Actions
Error
florianfueller
had a problem deploying
to
workflow-approval
September 10, 2026 13:09 — with
GitHub Actions
Error
florianfueller
had a problem deploying
to
workflow-approval
September 10, 2026 13:09 — with
GitHub Actions
Error
florianfueller
force-pushed
the
feature/59-vehicle-clock-callback-delivery
branch
from
September 23, 2026 06:56
c811e27 to
041c9b8
Compare
florianfueller
had a problem deploying
to
workflow-approval
September 23, 2026 06:56 — with
GitHub Actions
Error
florianfueller
had a problem deploying
to
workflow-approval
September 23, 2026 06:56 — with
GitHub Actions
Error
florianfueller
force-pushed
the
feature/59-vehicle-clock-callback-delivery
branch
from
September 23, 2026 07:42
041c9b8 to
4448f49
Compare
florianfueller
had a problem deploying
to
workflow-approval
September 23, 2026 07:42 — with
GitHub Actions
Error
florianfueller
had a problem deploying
to
workflow-approval
September 23, 2026 07:42 — with
GitHub Actions
Error
Implement callback delivery in VehicleClockBackendImpl; the Set and Unset methods were no-ops so far. - SvtCallbackDispatcher owns a worker thread that polls the TimeDaemon shared memory every 50 ms and dispatches on that thread. Init() enables dispatching; the thread is started once the first callback is registered and runs until the backend is destroyed. While no callback is registered it sleeps until the next registration. - SvtCallbackWrapper holds one callback and detects changes: it remembers the key of the last delivered value and forgets it on Set/Unset, so every newly registered callback receives the next frame and afterwards only changes. - TimeSlaveSyncData and PDelayMeasurementData fire on every changed frame. - VehicleTimeStatus fires once after registration, then only when the flags change (rate deviation excluded). - Subscribe and Unsubscribe are safe against in-flight invocations, including calls from inside a callback; the callback runs under the wrapper's recursive mutex, which provides the Set/Unset guarantees. - Add unit tests, update docs and comments, remove the "not yet delivered" warnings. Refs eclipse-score#59 Signed-off-by: Florian Füller <5454068+florianfueller@users.noreply.github.com>
florianfueller
force-pushed
the
feature/59-vehicle-clock-callback-delivery
branch
from
September 23, 2026 08:06
4448f49 to
756eaad
Compare
florianfueller
requested a deployment
to
workflow-approval
September 23, 2026 08:06 — with
GitHub Actions
Waiting
florianfueller
requested a deployment
to
workflow-approval
September 23, 2026 08:06 — with
GitHub Actions
Waiting
This branch is waiting to be deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Improvement
Description
Implement callback delivery in
VehicleClockBackendImpl; theSet*/Unset*methods wereno-ops so far.
Init(), polls the TimeDaemon sharedmemory every 50 ms while at least one callback is registered and dispatches on that thread.
TimeSlaveSyncData/PDelayMeasurementDatafire on every changed frame.VehicleTimeStatusfires once after registration, then only when the flags change(rate deviation excluded).
Subscribe/Unsubscribeare safe against in-flight invocations, including calls frominside a callback.
Related ticket
closes #59 (improvement ticket)