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

Method make_next_task_id

dlib/threads/thread_pool_extension.cpp:266–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264// ----------------------------------------------------------------------------------------
265
266 uint64 thread_pool_implementation::
267 make_next_task_id (
268 long idx
269 )
270 {
271 uint64 id = tasks[idx].next_task_id * tasks.size() + idx;
272 tasks[idx].next_task_id += 1;
273 return id;
274 }
275
276// ----------------------------------------------------------------------------------------
277

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected