Merge #856 Galaxy probe-watcher visibility race (test-only reachable) + shutdown test flake
Claude-Session: https://claude.ai/code/session_01GT67AD99zQQqpLCVm3p7xk
This commit is contained in:
@@ -192,8 +192,17 @@ public sealed class PerPlatformProbeWatcher : IDisposable
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Snapshot of platform tag names currently watched.</summary>
|
||||
public IReadOnlyCollection<string> WatchedPlatforms => [.. _itemHandlesByPlatform.Keys];
|
||||
/// <summary>
|
||||
/// Snapshot of platform tag names currently watched. Read under the sync lock so a platform
|
||||
/// is never visible here before <see cref="SubscribeAndRecordAsync"/> has published its probe
|
||||
/// binding into the driver registry (the record and the publish are one locked step): a
|
||||
/// caller that sees the platform and then raises a ScanState event must find it routable,
|
||||
/// not dropped by the pump as "stale after unsubscribe" (#856).
|
||||
/// </summary>
|
||||
public IReadOnlyCollection<string> WatchedPlatforms
|
||||
{
|
||||
get { lock (_syncLock) return [.. _itemHandlesByPlatform.Keys]; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reconcile the watched platform set against <paramref name="platformTagNames"/>.
|
||||
|
||||
Reference in New Issue
Block a user