Skip to content

Commit

Permalink
[ntcore] ProtobufSubscriber: Make mutex and msg mutable (#5927)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJohnson authored Nov 15, 2023
1 parent 09f3ed6 commit 7a87fe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ntcore/src/main/native/include/networktables/ProtobufTopic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

0 comments on commit 7a87fe4

Please sign in to comment.