| 7340 | } |
| 7341 | |
| 7342 | void Worker::remove() |
| 7343 | { |
| 7344 | if (!m_active && (m_next || m_prev || m_idleWorkers == this)) { |
| 7345 | m_cntIdle--; |
| 7346 | } |
| 7347 | |
| 7348 | if (m_idleWorkers == this) { |
| 7349 | m_idleWorkers = this->m_next; |
| 7350 | } |
| 7351 | if (m_activeWorkers == this) { |
| 7352 | m_activeWorkers = this->m_next; |
| 7353 | } |
| 7354 | if (m_next) { |
| 7355 | m_next->m_prev = this->m_prev; |
| 7356 | } |
| 7357 | if (m_prev) { |
| 7358 | m_prev->m_next = this->m_next; |
| 7359 | } |
| 7360 | m_prev = m_next = NULL; |
| 7361 | } |
| 7362 | |
| 7363 | void Worker::insert(const bool active) |
| 7364 | { |
no outgoing calls
no test coverage detected