rusticl/gl: mark GLCtxManager as Send + Sync

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26040>
This commit is contained in:
Karol Herbst
2023-11-04 12:02:54 +01:00
committed by Marge Bot
parent b76fb0f01b
commit 7f110ec63d
+7
View File
@@ -137,6 +137,13 @@ pub struct GLCtxManager {
gl_ctx: GLCtx,
}
// SAFETY: We do have a few pointers inside [GLCtxManager], but nothing really relevant here:
// * pointers of the GLX/EGL context and _XDisplay/EGLDisplay, but we don't do much with them
// except calling into our mesa internal GL sharing extension, which properly locks data.
// * pointer to the _XDisplay/EGLDisplay
unsafe impl Send for GLCtxManager {}
unsafe impl Sync for GLCtxManager {}
impl GLCtxManager {
pub fn new(
gl_context: *mut c_void,