8#include <boost/test/unit_test.hpp>
87 decltype(
sig0)::result_type
ret;
123 std::atomic<uint32_t>
val_det{0};
128 for (
int i = 0; i < 1000; i++) {
140 std::vector<btcsignals::scoped_connection>
extra_conns;
236 std::binary_semaphore
done1{0};
237 std::binary_semaphore
done2{0};
247 std::thread
thr([&] {
BOOST_AUTO_TEST_CASE(callback_order)
A combiner, which checks if at least one callback returned true.
void disconnect()
If a callback is associated with this connection, prevent it from being called in the future.
connection connect(Callable &&func) EXCLUSIVE_LOCKS_REQUIRED(!m_mutex)
BOOST_FIXTURE_TEST_SUITE(cuckoocache_tests, BasicTestingSetup)
Test Suite for CuckooCache.
BOOST_AUTO_TEST_SUITE_END()
#define BOOST_CHECK_EQUAL(v1, v2)
#define BOOST_CHECK(expr)
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.