MCPcopy Create free account
hub / github.com/FlagBrew/PKSM / executeTask

Method executeTask

3ds/source/utils/thread.cpp:211–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211void Threads::executeTask(void (*task)(void*), void* arg)
212{
213 workerTasks.lock()->emplace_back(task, arg);
214 LightSemaphore_Release(&moreTasks, 1);
215 if (numWorkers < maxWorkers && freeWorkers == 0)
216 {
217 Threads::create(WORKER_STACK, taskWorkerThread);
218 }
219}
220
221void Threads::exit(void)
222{

Callers

nothing calls this directly

Calls 2

createFunction · 0.50
lockMethod · 0.45

Tested by

no test coverage detected