MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / setupWorkers

Method setupWorkers

src/common/Task.cpp:282–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282int Coordinator::setupWorkers(int count)
283{
284 // TODO adjust count
285
286 for (int i = m_workers.getCount(); i < count; i++)
287 {
288 Worker* w = FB_NEW_POOL(*m_pool) Worker(this);
289 m_workers.add(w);
290 m_idleWorkers.push(w);
291 }
292
293 return count;
294}
295
296WorkerThread* Coordinator::getThread()
297{

Callers

nothing calls this directly

Calls 4

WorkerClass · 0.70
getCountMethod · 0.45
addMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected