Gogogogogogogo

This commit is contained in:
Adam Ierymenko 2019-09-23 15:18:52 -07:00
parent b44bd19c53
commit b6175bd408
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3
12 changed files with 583 additions and 150 deletions

View file

@ -57,6 +57,7 @@
#include <array>
#include <set>
#include <memory>
#include <atomic>
#ifdef __WINDOWS__
#define SETSOCKOPT_FLAG_TYPE BOOL
@ -79,7 +80,7 @@ struct ZT_GoNodeThread
std::string ip;
int port;
int af;
std::atomic_bool run;
std::atomic<bool> run;
std::thread thr;
};
@ -89,7 +90,7 @@ struct ZT_GoNode_Impl
volatile int64_t nextBackgroundTaskDeadline;
std::string path;
std::atomic_bool run;
std::atomic<bool> run;
std::map< ZT_SOCKET,ZT_GoNodeThread > threads;
std::mutex threads_l;