diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-11-18 11:35:21 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-11-18 11:35:21 +0100 |
commit | e4b4e7c28d4767d29b4348227948e5bd28e13a64 (patch) | |
tree | a7ab9067ec08175306920cea863917cb470bc60e /contrib/Socket.h | |
parent | bd2711937d9a4d8e8b63db1ccbc8f3633323da6d (diff) | |
download | ODR-AudioEnc-e4b4e7c28d4767d29b4348227948e5bd28e13a64.tar.gz ODR-AudioEnc-e4b4e7c28d4767d29b4348227948e5bd28e13a64.tar.bz2 ODR-AudioEnc-e4b4e7c28d4767d29b4348227948e5bd28e13a64.zip |
Apply common 23752f6 and e10272e
Diffstat (limited to 'contrib/Socket.h')
-rw-r--r-- | contrib/Socket.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/Socket.h b/contrib/Socket.h index df80b08..b9f6317 100644 --- a/contrib/Socket.h +++ b/contrib/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; |