mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
[index] Allow TxIndex sync thread to be interrupted.
This commit is contained in:
parent
94b4f8bbb9
commit
70d510d93c
4 changed files with 30 additions and 3 deletions
|
|
@ -5,6 +5,8 @@
|
|||
|
||||
#include <threadinterrupt.h>
|
||||
|
||||
CThreadInterrupt::CThreadInterrupt() : flag(false) {}
|
||||
|
||||
CThreadInterrupt::operator bool() const
|
||||
{
|
||||
return flag.load(std::memory_order_acquire);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue