@@ -370,14 +370,14 @@ class CConnman
370
370
// Network usage totals
371
371
CCriticalSection cs_totalBytesRecv;
372
372
CCriticalSection cs_totalBytesSent;
373
- uint64_t nTotalBytesRecv;
374
- uint64_t nTotalBytesSent;
373
+ uint64_t nTotalBytesRecv GUARDED_BY (cs_totalBytesRecv) ;
374
+ uint64_t nTotalBytesSent GUARDED_BY (cs_totalBytesSent) ;
375
375
376
376
// outbound limit & stats
377
- uint64_t nMaxOutboundTotalBytesSentInCycle;
378
- uint64_t nMaxOutboundCycleStartTime;
379
- uint64_t nMaxOutboundLimit;
380
- uint64_t nMaxOutboundTimeframe;
377
+ uint64_t nMaxOutboundTotalBytesSentInCycle GUARDED_BY (cs_totalBytesSent) ;
378
+ uint64_t nMaxOutboundCycleStartTime GUARDED_BY (cs_totalBytesSent) ;
379
+ uint64_t nMaxOutboundLimit GUARDED_BY (cs_totalBytesSent) ;
380
+ uint64_t nMaxOutboundTimeframe GUARDED_BY (cs_totalBytesSent) ;
381
381
382
382
// Whitelisted ranges. Any node connecting from these is automatically
383
383
// whitelisted (as well as those connecting to whitelisted binds).
@@ -395,7 +395,7 @@ class CConnman
395
395
CAddrMan addrman;
396
396
std::deque<std::string> vOneShots;
397
397
CCriticalSection cs_vOneShots;
398
- std::vector<std::string> vAddedNodes;
398
+ std::vector<std::string> vAddedNodes GUARDED_BY (cs_vAddedNodes) ;
399
399
CCriticalSection cs_vAddedNodes;
400
400
std::vector<CNode*> vNodes;
401
401
std::list<CNode*> vNodesDisconnected;
0 commit comments