mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-21 19:02:30 +00:00
devices: Require Interrupt trait implementations to support Sync
This is necesary to be able easily translate an Interrupt to a VirtioInterrupt which is already Sync. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
f5a44ea1ad
commit
3df1680888
@ -67,6 +67,6 @@ pub enum Error {
|
||||
IoError(io::Error),
|
||||
}
|
||||
|
||||
pub trait Interrupt: Send {
|
||||
pub trait Interrupt: Send + Sync {
|
||||
fn deliver(&self) -> result::Result<(), std::io::Error>;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user