diff options
| author | Jim Posen <[email protected]> | 2017-12-08 10:52:42 -0800 |
|---|---|---|
| committer | Jim Posen <[email protected]> | 2018-04-25 11:25:09 -0700 |
| commit | 70d510d93c08a168407f55c932ab09c644dea3b8 (patch) | |
| tree | c20fd2b12e025dedc7e0447d077ac8ae753c1b18 /src/threadinterrupt.cpp | |
| parent | [index] TxIndex initial sync thread. (diff) | |
| download | discoin-70d510d93c08a168407f55c932ab09c644dea3b8.tar.xz discoin-70d510d93c08a168407f55c932ab09c644dea3b8.zip | |
[index] Allow TxIndex sync thread to be interrupted.
Diffstat (limited to 'src/threadinterrupt.cpp')
| -rw-r--r-- | src/threadinterrupt.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 <threadinterrupt.h> +CThreadInterrupt::CThreadInterrupt() : flag(false) {} + CThreadInterrupt::operator bool() const { return flag.load(std::memory_order_acquire); |