summaryrefslogtreecommitdiff
path: root/zerotierone/node/RuntimeEnvironment.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'zerotierone/node/RuntimeEnvironment.hpp')
-rw-r--r--zerotierone/node/RuntimeEnvironment.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/zerotierone/node/RuntimeEnvironment.hpp b/zerotierone/node/RuntimeEnvironment.hpp
index 7ba1c98..1f52773 100644
--- a/zerotierone/node/RuntimeEnvironment.hpp
+++ b/zerotierone/node/RuntimeEnvironment.hpp
@@ -35,6 +35,7 @@ class Multicaster;
class NetworkController;
class SelfAwareness;
class Cluster;
+class DeferredPackets;
/**
* Holds global state for an instance of ZeroTier::Node
@@ -50,9 +51,11 @@ public:
,mc((Multicaster *)0)
,topology((Topology *)0)
,sa((SelfAwareness *)0)
+ ,dp((DeferredPackets *)0)
#ifdef ZT_ENABLE_CLUSTER
,cluster((Cluster *)0)
#endif
+ ,dpEnabled(0)
{
}
@@ -79,9 +82,15 @@ public:
Multicaster *mc;
Topology *topology;
SelfAwareness *sa;
+ DeferredPackets *dp;
+
#ifdef ZT_ENABLE_CLUSTER
Cluster *cluster;
#endif
+
+ // This is set to >0 if background threads are waiting on deferred
+ // packets, otherwise 'dp' should not be used.
+ volatile int dpEnabled;
};
} // namespace ZeroTier