[ntcore] ProtobufSubscriber: Make mutex and msg mutable (#5927)

This commit is contained in:
Peter Johnson
2023-11-14 21:07:38 -08:00
committed by GitHub
parent 09f3ed6a5f
commit 7a87fe4b60

View File

@@ -172,8 +172,8 @@ class ProtobufSubscriber : public Subscriber {
}
private:
wpi::mutex m_mutex;
wpi::ProtobufMessage<T> m_msg;
mutable wpi::mutex m_mutex;
mutable wpi::ProtobufMessage<T> m_msg;
ValueType m_defaultValue;
};