From 5e5bd77870a108b9b66aba6ad32d2a43a674016f Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Tue, 25 Aug 2015 09:55:21 -0700 Subject: [PATCH] add initialization for all atomics in SendQueue --- libraries/networking/src/udt/SendQueue.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/networking/src/udt/SendQueue.h b/libraries/networking/src/udt/SendQueue.h index 1987dee9dc..618cf17009 100644 --- a/libraries/networking/src/udt/SendQueue.h +++ b/libraries/networking/src/udt/SendQueue.h @@ -108,11 +108,11 @@ private: SequenceNumber _currentSequenceNumber; // Last sequence number sent out std::atomic _atomicCurrentSequenceNumber { 0 };// Atomic for last sequence number sent out - std::atomic _packetSendPeriod; // Interval between two packet send event in microseconds, set from CC + std::atomic _packetSendPeriod { 0 }; // Interval between two packet send event in microseconds, set from CC std::chrono::high_resolution_clock::time_point _lastSendTimestamp; // Record last time of packet departure std::atomic _isRunning { false }; - std::atomic _flowWindowSize; // Flow control window size (number of packets that can be on wire) - set from CC + std::atomic _flowWindowSize { 0 }; // Flow control window size (number of packets that can be on wire) - set from CC mutable std::mutex _naksLock; // Protects the naks list. LossList _naks; // Sequence numbers of packets to resend