Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up all known races/platform-specific UB at the time PR was opened #9708

Merged
merged 10 commits into from
Feb 11, 2017
Prev Previous commit
Next Next commit
Make nServices atomic
  • Loading branch information
TheBlueMatt committed Feb 10, 2017
commit 0f3187261519c7568ef4211ce12b9740a3c1200f
2 changes: 1 addition & 1 deletion src/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ class CNode
friend class CConnman;
public:
// socket
ServiceFlags nServices;
std::atomic<ServiceFlags> nServices;
ServiceFlags nServicesExpected;
SOCKET hSocket;
size_t nSendSize; // total size of all vSendMsg entries
Expand Down