MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / schedule

Method schedule

src/scheduler.cpp:106–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106void CScheduler::schedule(CScheduler::Function f, boost::chrono::system_clock::time_point t)
107{
108 {
109 boost::unique_lock<boost::mutex> lock(newTaskMutex);
110 taskQueue.insert(std::make_pair(t, f));
111 }
112 newTaskScheduled.notify_one();
113}
114
115void CScheduler::scheduleFromNow(CScheduler::Function f, int64_t deltaMilliSeconds)
116{

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