| 538 | } |
| 539 | |
| 540 | void HeartBeatLock::UpdateProcUsed() { |
| 541 | int proc_used = 0; |
| 542 | for (int vpid{0}; vpid < impl_->nproc; ++vpid) { |
| 543 | Queue_t *queue{&impl_->buf->queues[vpid]}; |
| 544 | if (LOCK_ITEM_MAGIC == queue->magic) { |
| 545 | ++proc_used; |
| 546 | } |
| 547 | } |
| 548 | impl_->proc_used = proc_used; |
| 549 | } |
| 550 | |
| 551 | |
| 552 | comm::RetCode HeartBeatLock::Sync() { |
nothing calls this directly
no outgoing calls
no test coverage detected