Skip to content

Commit

Permalink
[ntcore] ProtobufSubscriber: Make mutex and msg mutable (wpilibsuite#…
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJohnson authored and Starlight220 committed Dec 1, 2023
1 parent c5ab919 commit 325bf89
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 325bf89

Please sign in to comment.