MCPcopy Create free account
hub / github.com/davisking/dlib / find_ready_task

Method find_ready_task

dlib/threads/thread_pool_extension.cpp:251–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249// ----------------------------------------------------------------------------------------
250
251 long thread_pool_implementation::
252 find_ready_task (
253 ) const
254 {
255 for (unsigned long i = 0; i < tasks.size(); ++i)
256 {
257 if (tasks[i].is_ready())
258 return i;
259 }
260
261 return -1;
262 }
263
264// ----------------------------------------------------------------------------------------
265

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
is_readyMethod · 0.45

Tested by

no test coverage detected