Bitcoin Core 28.99.0
P2P Digital Currency
Functions
scheduler_tests.cpp File Reference
#include <random.h>
#include <scheduler.h>
#include <util/time.h>
#include <boost/test/unit_test.hpp>
#include <functional>
#include <mutex>
#include <thread>
#include <vector>
Include dependency graph for scheduler_tests.cpp:

Go to the source code of this file.

Functions

static void microTask (CScheduler &s, std::mutex &mutex, int &counter, int delta, std::chrono::steady_clock::time_point rescheduleTime)
 
 BOOST_AUTO_TEST_CASE (manythreads)
 
 BOOST_AUTO_TEST_CASE (wait_until_past)
 
 BOOST_AUTO_TEST_CASE (singlethreadedscheduler_ordered)
 
 BOOST_AUTO_TEST_CASE (mockforward)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/4]

BOOST_AUTO_TEST_CASE ( manythreads  )

Definition at line 31 of file scheduler_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/4]

BOOST_AUTO_TEST_CASE ( mockforward  )

Definition at line 174 of file scheduler_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/4]

BOOST_AUTO_TEST_CASE ( singlethreadedscheduler_ordered  )

Definition at line 127 of file scheduler_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/4]

BOOST_AUTO_TEST_CASE ( wait_until_past  )

Definition at line 109 of file scheduler_tests.cpp.

◆ microTask()

static void microTask ( CScheduler s,
std::mutex &  mutex,
int &  counter,
int  delta,
std::chrono::steady_clock::time_point  rescheduleTime 
)
static

Definition at line 18 of file scheduler_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: