Locks the vCPU states and calls [`Self::active_vcpus`].
(&self)
| 1655 | |
| 1656 | /// Locks the vCPU states and calls [`Self::active_vcpus`]. |
| 1657 | fn present_vcpus(&self) -> u32 { |
| 1658 | let lock = self.vcpu_states.lock().unwrap(); |
| 1659 | Self::active_vcpus(&lock) |
| 1660 | } |
| 1661 | |
| 1662 | /// Counts the number of active vCPUs (running vCPU threads). |
| 1663 | fn active_vcpus(vcpu_states: &[VcpuState]) -> u32 { |
no outgoing calls
no test coverage detected