diff options
Diffstat (limited to 'src/threadinterrupt.cpp')
-rw-r--r-- | src/threadinterrupt.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/threadinterrupt.cpp b/src/threadinterrupt.cpp index 5d932091cb..d08d52e4a9 100644 --- a/src/threadinterrupt.cpp +++ b/src/threadinterrupt.cpp @@ -1,10 +1,12 @@ // Copyright (c) 2009-2010 Satoshi Nakamoto -// Copyright (c) 2009-2017 The Bitcoin Core developers +// Copyright (c) 2009-2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <threadinterrupt.h> +CThreadInterrupt::CThreadInterrupt() : flag(false) {} + CThreadInterrupt::operator bool() const { return flag.load(std::memory_order_acquire); |