MCPcopy Create free account
hub / github.com/ElementsProject/elements / schedule

Method schedule

src/scheduler.cpp:75–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75void CScheduler::schedule(CScheduler::Function f, std::chrono::system_clock::time_point t)
76{
77 {
78 LOCK(newTaskMutex);
79 taskQueue.insert(std::make_pair(t, f));
80 }
81 newTaskScheduled.notify_one();
82}
83
84void CScheduler::MockForward(std::chrono::seconds delta_seconds)
85{

Callers 3

microTaskFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 1

insertMethod · 0.45

Tested by 2

microTaskFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64