diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2017-02-06 02:34:57 -0500 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2017-02-10 11:32:39 -0500 |
commit | 321d0fc6b6624c65508f8b9059418cb936f0bbbe (patch) | |
tree | 57a99a1ede16e5449db2d230ddbc7a3b561547be /src/blockencodings.h | |
parent | 2447c1024e6069bfe62ddff65c4e1aaf28f32b38 (diff) |
net: fix a few races. Credit @TheBlueMatt
These are (afaik) all long-standing races or concurrent accesses. Going
forward, we can clean these up so that they're not all individual atomic
accesses.
- Reintroduce cs_vRecv to guard receive-specific vars
- Lock vRecv/vSend for CNodeStats
- Make some vars atomic.
- Only set the connection time in CNode's constructor so that it doesn't change
Diffstat (limited to 'src/blockencodings.h')
0 files changed, 0 insertions, 0 deletions