diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2025-09-29 14:45:31 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2025-09-29 14:45:31 +0200 |
commit | d8fab73aeb2c4401bbd88024556a7726ff2129ea (patch) | |
tree | 4e68fc3d3d9de4f40ffb02747474a9e46f69d371 /lib/Socket.h | |
parent | c84727c8ec0f99d66d1ad7d4716de79b6235d4d1 (diff) | |
download | dabmux-d8fab73aeb2c4401bbd88024556a7726ff2129ea.tar.gz dabmux-d8fab73aeb2c4401bbd88024556a7726ff2129ea.tar.bz2 dabmux-d8fab73aeb2c4401bbd88024556a7726ff2129ea.zip |
common 53fdfd2: Fix race condition in TCPDataDispatcher get_stats
Diffstat (limited to 'lib/Socket.h')
-rw-r--r-- | lib/Socket.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Socket.h b/lib/Socket.h index 29b618a..b9a40ee 100644 --- a/lib/Socket.h +++ b/lib/Socket.h @@ -298,7 +298,7 @@ class TCPDataDispatcher std::thread m_listener_thread; TCPSocket m_listener_socket; - std::mutex m_mutex; + mutable std::mutex m_mutex; std::deque<std::vector<uint8_t> > m_preroll_queue; std::list<TCPConnection> m_connections; }; |