MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / drop

Method drop

virtio-devices/src/vsock/device.rs:434–440  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

432 B: VsockBackend,
433{
434 fn drop(&mut self) {
435 if let Some(kill_evt) = self.common.kill_evt.take() {
436 // Ignore the result because there is nothing we can do about it.
437 let _ = kill_evt.write(1);
438 }
439 self.common.wait_for_epoll_threads();
440 }
441}
442
443impl<B> VirtioDevice for Vsock<B>

Callers

nothing calls this directly

Calls 3

takeMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected