mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-07 03:03:58 +01:00
[index] Allow TxIndex sync thread to be interrupted.
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
|
||||
#include <threadinterrupt.h>
|
||||
|
||||
CThreadInterrupt::CThreadInterrupt() : flag(false) {}
|
||||
|
||||
CThreadInterrupt::operator bool() const
|
||||
{
|
||||
return flag.load(std::memory_order_acquire);
|
||||
|
||||
Reference in New Issue
Block a user