Skip to content

Commit

Permalink
m: Update src/backends/cg.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Mads Marquart <mads@marquart.dk>
  • Loading branch information
notgull and madsmtm authored May 20, 2024
1 parent bc058dc commit 8aac50e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backends/cg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,5 +181,6 @@ impl<'a, D: HasDisplayHandle, W: HasWindowHandle> BufferInterface for BufferImpl
}

struct SendCGColorSpace(CGColorSpace);
// SAFETY: I'm 99% sure this is thread safe.
// SAFETY: `CGColorSpace` is immutable, and can freely be shared between threads.
unsafe impl Send for SendCGColorSpace {}
unsafe impl Sync for SendCGColorSpace {}

0 comments on commit 8aac50e

Please sign in to comment.