From 70d510d93c08a168407f55c932ab09c644dea3b8 Mon Sep 17 00:00:00 2001 From: Jim Posen Date: Fri, 8 Dec 2017 10:52:42 -0800 Subject: [index] Allow TxIndex sync thread to be interrupted. --- src/threadinterrupt.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/threadinterrupt.cpp') diff --git a/src/threadinterrupt.cpp b/src/threadinterrupt.cpp index 5d932091c..7da4e136e 100644 --- a/src/threadinterrupt.cpp +++ b/src/threadinterrupt.cpp @@ -5,6 +5,8 @@ #include +CThreadInterrupt::CThreadInterrupt() : flag(false) {} + CThreadInterrupt::operator bool() const { return flag.load(std::memory_order_acquire); -- cgit v1.2.3