MCPcopy Create free account
hub / github.com/Vhonowslend/StreamFX-Public / threadpool

Method threadpool

source/util/util-threadpool.cpp:123–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123streamfx::util::threadpool::threadpool::threadpool(size_t minimum, size_t maximum) : _limits{minimum, maximum}, _workers_lock(), _worker_count(0), _workers(), _tasks_lock(), _tasks_cv(), _tasks()
124{
125 // Spawn the minimum number of threads.
126 spawn(_limits.first);
127}
128
129std::shared_ptr<streamfx::util::threadpool::task> streamfx::util::threadpool::threadpool::push(task_callback_t callback, task_data_t data /*= nullptr*/)
130{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected