MCPcopy Create free account
hub / github.com/comaps/comaps / Run

Method Run

libs/storage/storage_tests/task_runner.cpp:12–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10}
11
12void TaskRunner::Run()
13{
14 CHECK(m_checker.CalledOnOriginalThread(), ());
15 while (!m_tasks.empty())
16 {
17 TTask task = m_tasks.front();
18 m_tasks.pop();
19 task();
20 }
21}
22
23void TaskRunner::PostTask(TTask const & task)
24{

Callers 1

UNIT_CLASS_TESTFunction · 0.45

Calls 4

frontMethod · 0.80
popMethod · 0.80
emptyMethod · 0.45

Tested by 1

UNIT_CLASS_TESTFunction · 0.36