| 7361 | } |
| 7362 | |
| 7363 | void 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 | |
| 7386 | void Worker::start(USHORT flags) |
| 7387 | { |
no outgoing calls
no test coverage detected