summaryrefslogtreecommitdiffstats
path: root/lib/Socket.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-11-18 11:34:04 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-11-18 11:34:04 +0100
commita0b08159adceda92bbc6344a8298361ff3825d06 (patch)
tree7dc2b2609197289c07c1ec5c3548025bd6326081 /lib/Socket.h
parent7d91eabe90e47e7c316f26566638cc88e1a8c2b4 (diff)
downloaddabmod-a0b08159adceda92bbc6344a8298361ff3825d06.tar.gz
dabmod-a0b08159adceda92bbc6344a8298361ff3825d06.tar.bz2
dabmod-a0b08159adceda92bbc6344a8298361ff3825d06.zip
Apply common 23752f6 and e10272e
Diffstat (limited to 'lib/Socket.h')
-rw-r--r--lib/Socket.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Socket.h b/lib/Socket.h
index df80b08..b9f6317 100644
--- a/lib/Socket.h
+++ b/lib/Socket.h
@@ -258,7 +258,7 @@ class TCPDataDispatcher
size_t m_max_queue_size;
- std::atomic<bool> m_running;
+ std::atomic<bool> m_running = ATOMIC_VAR_INIT(false);
std::string m_exception_data;
std::thread m_listener_thread;
TCPSocket m_listener_socket;
@@ -285,7 +285,7 @@ class TCPReceiveServer {
size_t m_blocksize = 0;
ThreadsafeQueue<std::vector<uint8_t> > m_queue;
- std::atomic<bool> m_running;
+ std::atomic<bool> m_running = ATOMIC_VAR_INIT(false);
std::string m_exception_data;
std::thread m_listener_thread;
TCPSocket m_listener_socket;