Skip to content

Commit 7bf45b1

Browse files
committed
fix(acpi): Implement Sync+Send for Vmm
Signed-off-by: Babis Chalios <[email protected]>
1 parent a420c7d commit 7bf45b1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/vmm/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,11 @@ pub struct Vmm {
319319
pio_device_manager: PortIODeviceManager,
320320
}
321321

322+
/// SAFETY: safe to implement Sync
323+
unsafe impl Sync for Vmm {}
324+
/// SAFETY: safe to implement Send
325+
unsafe impl Send for Vmm {}
326+
322327
impl Vmm {
323328
/// Gets Vmm version.
324329
pub fn version(&self) -> String {

0 commit comments

Comments
 (0)