MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / AddTask

Method AddTask

src/openrct2/core/JobPool.cpp:44–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void JobPool::AddTask(std::function<void()> workFn, std::function<void()> completionFn)
45{
46 {
47 std::lock_guard lock(_mutex);
48 _pending.emplace_back(workFn, completionFn);
49 }
50 _condPending.notify_one();
51}
52
53void JobPool::Join(std::function<void()> reportFn)
54{

Callers 4

AddJobMethod · 0.80
ViewportPaintFunction · 0.80
BuildMethod · 0.80
LoadObjectsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected