Browse Source

Merge #9131: fNetworkActive is not protected by a lock, use an atomic

079142b fNetworkActive is not protected by a lock, use an atomic (Jonas Schnelli)
0.14
Wladimir J. van der Laan 8 years ago
parent
commit
62af164638
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 2
      src/net.h

2
src/net.h

@ -403,7 +403,7 @@ private:
unsigned int nReceiveFloodSize; unsigned int nReceiveFloodSize;
std::vector<ListenSocket> vhListenSocket; std::vector<ListenSocket> vhListenSocket;
bool fNetworkActive; std::atomic<bool> fNetworkActive;
banmap_t setBanned; banmap_t setBanned;
CCriticalSection cs_setBanned; CCriticalSection cs_setBanned;
bool setBannedIsDirty; bool setBannedIsDirty;

Loading…
Cancel
Save