From 7a87fe4b60b2f3874d0a5da33a2c593034be48c2 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Tue, 14 Nov 2023 21:07:38 -0800 Subject: [PATCH] [ntcore] ProtobufSubscriber: Make mutex and msg mutable (#5927) --- ntcore/src/main/native/include/networktables/ProtobufTopic.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ntcore/src/main/native/include/networktables/ProtobufTopic.h b/ntcore/src/main/native/include/networktables/ProtobufTopic.h index 362d2cb5b5..5fe615b26d 100644 --- a/ntcore/src/main/native/include/networktables/ProtobufTopic.h +++ b/ntcore/src/main/native/include/networktables/ProtobufTopic.h @@ -172,8 +172,8 @@ class ProtobufSubscriber : public Subscriber { } private: - wpi::mutex m_mutex; - wpi::ProtobufMessage m_msg; + mutable wpi::mutex m_mutex; + mutable wpi::ProtobufMessage m_msg; ValueType m_defaultValue; };