mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 18:53:23 -03:00
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)
This commit is contained in:
commit
62af164638
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue