[index] Allow TxIndex sync thread to be interrupted.

This commit is contained in:
Jim Posen
2017-12-08 10:52:42 -08:00
parent 94b4f8bbb9
commit 70d510d93c
4 changed files with 30 additions and 3 deletions

View File

@@ -5,6 +5,8 @@
#include <threadinterrupt.h>
CThreadInterrupt::CThreadInterrupt() : flag(false) {}
CThreadInterrupt::operator bool() const
{
return flag.load(std::memory_order_acquire);