You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a LiteBox broker notification dispatch path and a BrokerHandleRegistry that maps broker object handles to local pollables, so EventReadiness notifications can wake blocked broker-backed event counters. Event counters register/unregister their pollable by handle, and the Linux userland runner now dispatches notification-channel messages through a narrow LiteBox dispatcher instead of only draining them. Includes focused coverage that a broker readiness notification wakes a blocked broker-backed event counter read.
Add a LiteBox broker notification sink and local event registry so broker EventReadiness notifications can wake the matching EventCounter pollee. Register broker-backed event counters by handle and unregister them on drop.
Wire the Linux userland runner notification receive loop to dispatch notifications instead of only draining them, and cover the path with a local-control-channel test that wakes a blocked event counter read via notification.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Remove the EventCounterWakeups wrapper and register broker-backed event counters by weak Pollee references instead. Keep readiness-to-events mapping in the broker event registry so notification dispatch can wake local waiters without a custom wrapper type.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Rename the event-specific registry to BrokerObjectRegistry and expose generic pollable registration plus readiness notification helpers. Event counters remain the first user, while future broker-backed objects can register the same way.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Rename unregister to unregister_pollable to match register_pollable on BrokerObjectRegistry.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Keep BrokerObjectRegistry methods in one impl block and put the TimeProvider bound only on notify_readiness, where Pollee notification requires it.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Rename BrokerObjectRegistry to BrokerPollableRegistry to make clear that the registry maps broker object handles to local pollables for readiness wakeups, not to general object state.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Rename the readiness routing table to BrokerHandleRegistry and store BrokerHandleEntry values so a handle can own more local metadata than a single weak Pollee. Registering and unregistering pollables now operates within the handle entry, allowing future broker-backed objects to attach multiple wake surfaces.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Let BrokerHandleEntry prune and notify its pollables in place so BrokerHandleRegistry::notify_readiness no longer passes pollable vectors around. Remove stale entries before checking for an empty handle entry.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Remove unnecessary fake-channel handshake state and overly specific request matching from the notification wakeup test while keeping the coverage that a broker notification wakes a blocked event counter read.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Remove BrokerNotificationSink and add LiteBox::dispatch_broker_notification. The Linux userland runner now moves a LiteBox clone into the notification receiver thread and dispatches notifications directly.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Keep LiteBox inherent methods in one impl block and leave only the required Clone trait impl separate.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Restore the explicit crate-private LiteBox::clone helper instead of exposing Clone publicly. Add a narrow broker notification dispatcher for deployment code that needs to move notification dispatch into a receiver thread.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Remove local type aliases for the concrete broker local and notification channel types in the Linux userland runner.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Remove the one-use BrokerConnection wrapper and have runner broker connect return the negotiated local control adapter and notification receiver directly.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Note: this does not mean API is unchanged, or even that there are no breaking changes; simply, none of the detections triggered.
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
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.
Adds a LiteBox broker notification dispatch path and a BrokerHandleRegistry that maps broker object handles to local pollables, so EventReadiness notifications can wake blocked broker-backed event counters. Event counters register/unregister their pollable by handle, and the Linux userland runner now dispatches notification-channel messages through a narrow LiteBox dispatcher instead of only draining them. Includes focused coverage that a broker readiness notification wakes a blocked broker-backed event counter read.