MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / Submit

Method Submit

engine/Poseidon/Core/TaskPool.cpp:129–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129void TaskPool::Submit(std::function<void()> work)
130{
131 std::lock_guard<std::mutex> lock(_submitMutex);
132 GcCompletedPending();
133 auto* task = new FireAndForgetTask(std::move(work));
134 _pending.push_back(task);
135 _scheduler->AddTaskSetToPipe(task);
136}
137
138void TaskPool::GcCompletedPending()
139{

Callers 3

PreloadWaveMethod · 0.80
KickAsyncLoadMethod · 0.80
test_task_pool.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected