mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-05 13:05:45 +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),
|
IoError(io::Error),
|
||||||
}
|
}
|
||||||
|
|
||||||
pub trait Interrupt: Send {
|
pub trait Interrupt: Send + Sync {
|
||||||
fn deliver(&self) -> result::Result<(), std::io::Error>;
|
fn deliver(&self) -> result::Result<(), std::io::Error>;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user