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

Method clone_api_sender

vmm/src/api/dbus/mod.rs:79–84  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

77 }
78
79 async fn clone_api_sender(&self) -> Sender<ApiRequest> {
80 // lock the async mutex, clone the `Sender` and then immediately
81 // drop the MutexGuard so that other tasks can clone the
82 // `Sender` as well
83 self.api_sender.lock().await.clone()
84 }
85
86 fn clone_api_notifier(&self) -> Result<EventFd> {
87 self.api_notifier

Callers 5

vm_actionMethod · 0.80
vmm_pingMethod · 0.80
vmm_shutdownMethod · 0.80
vm_createMethod · 0.80
vm_infoMethod · 0.80

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected