Changeset View
Changeset View
Standalone View
Standalone View
src/scheduler.cpp
// Copyright (c) 2015-2016 The Bitcoin Core developers | // Copyright (c) 2015-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "scheduler.h" | #include <scheduler.h> | ||||
#include "random.h" | #include <random.h> | ||||
#include "reverselock.h" | #include <reverselock.h> | ||||
#include <boost/bind.hpp> | #include <boost/bind.hpp> | ||||
#include <cassert> | #include <cassert> | ||||
#include <utility> | #include <utility> | ||||
CScheduler::CScheduler() | CScheduler::CScheduler() | ||||
: nThreadsServicingQueue(0), stopRequested(false), stopWhenEmpty(false) {} | : nThreadsServicingQueue(0), stopRequested(false), stopWhenEmpty(false) {} | ||||
CScheduler::~CScheduler() { | CScheduler::~CScheduler() { | ||||
assert(nThreadsServicingQueue == 0); | assert(nThreadsServicingQueue == 0); | ||||
▲ Show 20 Lines • Show All 186 Lines • Show Last 20 Lines |