MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / executeTask

Method executeTask

3ds/source/thread.cpp:185–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185void Threads::executeTask(void (*task)(void*), void* arg)
186{
187 workerTasks.lock()->emplace_back(task, arg);
188 LightSemaphore_Release(&moreTasks, 1);
189 if (numWorkers < maxWorkers && freeWorkers == 0) {
190 Threads::create(WORKER_STACK, taskWorkerThread);
191 }
192}
193
194void Threads::exit(void)
195{

Callers

nothing calls this directly

Calls 3

emplace_backMethod · 0.80
createFunction · 0.50
lockMethod · 0.45

Tested by

no test coverage detected