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

Method releaseWorker

src/common/Task.cpp:270–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270void Coordinator::releaseWorker(Worker* w)
271{
272 MutexLockGuard guard(m_mutex, FB_FUNCTION);
273 FB_SIZE_T pos;
274 if (m_activeWorkers.find(w, pos))
275 {
276 m_activeWorkers.remove(pos);
277 m_idleWorkers.push(w);
278 }
279 fb_assert(m_idleWorkers.find(w, pos));
280}
281
282int Coordinator::setupWorkers(int count)
283{

Callers

nothing calls this directly

Calls 3

findMethod · 0.45
removeMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected