[ntcore] Add PubSubOption to disable handle signaling (#8972)

This helps reduce lock contention on Synchronization Signal objects if
the user does not intend to use this signaling path.

Use this option on the RobotBase MultiSubscriber to all topics.
This commit is contained in:
Peter Johnson
2026-06-19 17:17:37 -05:00
committed by GitHub
parent 8d2f3212e7
commit 608f024f82
14 changed files with 130 additions and 13 deletions

View File

@@ -166,7 +166,9 @@ class RobotStarter:
inst = ntcore.NetworkTableInstance.getDefault()
# subscribe to "" to force persistent values to progagate to local
msub = ntcore.MultiSubscriber(inst, [""])
msub = ntcore.MultiSubscriber(
inst, [""], ntcore.PubSubOptions(disableSignal=True)
)
if not isSimulation:
inst.startServer("/home/systemcore/networktables.json", "", "robot")