| 524 | } |
| 525 | |
| 526 | comm::RetCode HeartBeatLock::GetPendingQueues(const vector<Queue_t> &all_queues, const AddrScales &addr_scales, vector<Queue_t> &pending_queues) { |
| 527 | comm::RetCode ret; |
| 528 | set<size_t> queue_idxs; |
| 529 | if (comm::RetCode::RET_OK != (ret = impl_->consumer->GetQueueByAddrScale(all_queues, addr_scales, queue_idxs))) { |
| 530 | QLErr("ERR: GetQueueByAddrScale ret %d", comm::as_integer(ret)); |
| 531 | return ret; |
| 532 | } |
| 533 | for (auto &&idx : queue_idxs) { |
| 534 | pending_queues.push_back(all_queues[idx]); |
| 535 | QLVerb("add into pending_queues. idx %d", idx); |
| 536 | } |
| 537 | return comm::RetCode::RET_OK; |
| 538 | } |
| 539 | |
| 540 | void HeartBeatLock::UpdateProcUsed() { |
| 541 | int proc_used = 0; |
nothing calls this directly
no test coverage detected