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

Method Do

libs/base/thread_pool.cpp:25–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 {}
24
25 virtual void Do()
26 {
27 while (!IsCancelled())
28 {
29 IRoutine * task = m_popFn();
30 if (task == NULL)
31 {
32 Cancel();
33 continue;
34 }
35
36 if (!task->IsCancelled())
37 task->Do();
38 m_finishFn(task);
39 }
40 }
41
42private:
43 TPopRoutineFn m_popFn;

Callers 1

RunRoutineFunction · 0.45

Calls 1

IsCancelledMethod · 0.45

Tested by

no test coverage detected