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

Method insert

src/remote/server/server.cpp:7363–7384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7361}
7362
7363void Worker::insert(const bool active)
7364{
7365 fb_assert(!m_next);
7366 fb_assert(!m_prev);
7367 fb_assert(m_idleWorkers != this);
7368 fb_assert(m_activeWorkers != this);
7369
7370 Worker** list = active ? &m_activeWorkers : &m_idleWorkers;
7371 m_next = *list;
7372 if (*list) {
7373 (*list)->m_prev = this;
7374 }
7375 *list = this;
7376 m_active = active;
7377 if (!m_active)
7378 {
7379 m_cntIdle++;
7380 fb_assert(m_idleWorkers == this);
7381 }
7382 else
7383 fb_assert(m_activeWorkers == this);
7384}
7385
7386void Worker::start(USHORT flags)
7387{

Callers 2

setMethod · 0.45
addServerKeysMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected