mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
[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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user