From 16bc9533ed5eae9165caeca8451751562f8e15ce Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 21 Dec 2015 15:23:14 -0800 Subject: Fix a problem that made valgrind complain on shutdown (not otherwise an issue). --- node/DeferredPackets.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'node/DeferredPackets.hpp') diff --git a/node/DeferredPackets.hpp b/node/DeferredPackets.hpp index 1ea65f3c..87890300 100644 --- a/node/DeferredPackets.hpp +++ b/node/DeferredPackets.hpp @@ -88,7 +88,8 @@ private: const RuntimeEnvironment *const RR; unsigned long _readPtr; unsigned long _writePtr; - bool _die; + volatile int _waiting; + volatile bool _die; Mutex _q_m; BinarySemaphore _q_s; }; -- cgit v1.2.3