MCPcopy Create free account
hub / github.com/Icinga/icinga2 / Task

Class Task

lib/base/workqueue.hpp:32–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30using TaskFunction = std::function<void ()>;
31
32struct Task
33{
34 Task() = default;
35
36 Task(TaskFunction function, WorkQueuePriority priority, int id)
37 : Function(std::move(function)), Priority(priority), ID(id)
38 { }
39
40 TaskFunction Function;
41 WorkQueuePriority Priority{PriorityNormal};
42 int ID{-1};
43};
44
45bool operator<(const Task& a, const Task& b);
46

Callers 1

WorkerThreadProcMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected