Changeset View
Changeset View
Standalone View
Standalone View
src/test/sync_tests.cpp
// Copyright (c) 2012-2017 The Bitcoin Core developers | // Copyright (c) 2012-2017 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 <sync.h> | #include <sync.h> | ||||
#include <test/test_bitcoin.h> | #include <test/setup_common.h> | ||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
namespace { | namespace { | ||||
template <typename MutexType> | template <typename MutexType> | ||||
void TestPotentialDeadLockDetected(MutexType &mutex1, MutexType &mutex2) { | void TestPotentialDeadLockDetected(MutexType &mutex1, MutexType &mutex2) { | ||||
{ LOCK2(mutex1, mutex2); } | { LOCK2(mutex1, mutex2); } | ||||
bool error_thrown = false; | bool error_thrown = false; | ||||
Show All 34 Lines |