aboutsummaryrefslogtreecommitdiff
path: root/src/threadinterrupt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/threadinterrupt.h')
-rw-r--r--src/threadinterrupt.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/threadinterrupt.h b/src/threadinterrupt.h
index c30bd3d657..a37da956e5 100644
--- a/src/threadinterrupt.h
+++ b/src/threadinterrupt.h
@@ -5,6 +5,8 @@
#ifndef BITCOIN_THREADINTERRUPT_H
#define BITCOIN_THREADINTERRUPT_H
+#include <sync.h>
+
#include <atomic>
#include <chrono>
#include <condition_variable>
@@ -28,7 +30,7 @@ public:
private:
std::condition_variable cond;
- std::mutex mut;
+ CWaitableCriticalSection mut;
std::atomic<bool> flag;
};