aboutsummaryrefslogtreecommitdiff
path: root/src/threadinterrupt.cpp
diff options
context:
space:
mode:
authorJim Posen <jimpo@coinbase.com>2017-12-08 10:52:42 -0800
committerJim Posen <jimpo@coinbase.com>2018-04-25 11:25:09 -0700
commit70d510d93c08a168407f55c932ab09c644dea3b8 (patch)
treec20fd2b12e025dedc7e0447d077ac8ae753c1b18 /src/threadinterrupt.cpp
parent94b4f8bbb9e7e37f3057b47bf13a74de12b8e0cc (diff)
downloadbitcoin-70d510d93c08a168407f55c932ab09c644dea3b8.tar.xz
[index] Allow TxIndex sync thread to be interrupted.
Diffstat (limited to 'src/threadinterrupt.cpp')
-rw-r--r--src/threadinterrupt.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/threadinterrupt.cpp b/src/threadinterrupt.cpp
index 5d932091cb..7da4e136ef 100644
--- a/src/threadinterrupt.cpp
+++ b/src/threadinterrupt.cpp
@@ -5,6 +5,8 @@
#include <threadinterrupt.h>
+CThreadInterrupt::CThreadInterrupt() : flag(false) {}
+
CThreadInterrupt::operator bool() const
{
return flag.load(std::memory_order_acquire);