You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Copyright (c) 2009-2016 The Bitcoin Core developers
3
+
// Distributed under the MIT software license, see the accompanying
4
+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
// Distributed under the MIT software license, see the accompanying
3
+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
+
5
+
#ifndef BITCOIN_THREADINTERRUPT_H
6
+
#defineBITCOIN_THREADINTERRUPT_H
7
+
8
+
#include<atomic>
9
+
#include<chrono>
10
+
#include<condition_variable>
11
+
#include<mutex>
12
+
13
+
/*
14
+
A helper class for interruptible sleeps. Calling operator() will interrupt
15
+
any current sleep, and after that point operator bool() will return true
0 commit comments