Skip to content

Commit

Permalink
implement Send + Sync for Framebuffer
Browse files Browse the repository at this point in the history
Fixes #29
  • Loading branch information
lylythechosenone committed Dec 2, 2024
1 parent 4dc6dcb commit 75527fb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/framebuffer.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
//! Auxiliary types for the [framebuffer request](crate::request::FramebufferRequest)
use core::{ffi::c_void, ptr::NonNull};
use core::{
ffi::c_void,
marker::{Send, Sync},
ptr::NonNull,
};

#[derive(Clone, Copy)]
#[repr(C)]
Expand Down Expand Up @@ -186,3 +190,5 @@ impl<'a> Framebuffer<'a> {
}
}
}
unsafe impl Send for Framebuffer {}
unsafe impl Sync for Framebuffer {}

0 comments on commit 75527fb

Please sign in to comment.