diff options
| author | Cory Fields <[email protected]> | 2017-02-06 14:05:45 -0500 |
|---|---|---|
| committer | Cory Fields <[email protected]> | 2017-02-06 14:48:50 -0500 |
| commit | 9a0b784deaab6b9fffcab227d928987b981d0572 (patch) | |
| tree | 798813108d73e10d0bf9ee61be34efd4657d11a5 /src/net.h | |
| parent | net: rearrange so that socket accesses can be grouped together (diff) | |
| download | discoin-9a0b784deaab6b9fffcab227d928987b981d0572.tar.xz discoin-9a0b784deaab6b9fffcab227d928987b981d0572.zip | |
net: add a lock around hSocket
Diffstat (limited to 'src/net.h')
| -rw-r--r-- | src/net.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -572,6 +572,7 @@ public: uint64_t nSendBytes; std::deque<std::vector<unsigned char>> vSendMsg; CCriticalSection cs_vSend; + CCriticalSection cs_hSocket; CCriticalSection cs_vProcessMsg; std::list<CNetMessage> vProcessMsg; |