objc2_core_graphics/
thread_safety.rs

1#[allow(unused_imports)]
2use crate::*;
3
4// SAFETY: Marked as @unchecked Swift.Sendable under the following conditions:
5// @available(macOS 10.9, iOS 7.0, tvOS 9.0, watchOS 2.0, visionOS 1.0, *)
6// Which are all newer than Rust's minimum supported versions
7#[cfg(feature = "CGColor")]
8unsafe impl Send for CGColor {}
9#[cfg(feature = "CGColor")]
10unsafe impl Sync for CGColor {}
11#[cfg(feature = "CGImage")]
12unsafe impl Send for CGImage {}
13#[cfg(feature = "CGImage")]
14unsafe impl Sync for CGImage {}
15#[cfg(feature = "CGColorSpace")]
16unsafe impl Send for CGColorSpace {}
17#[cfg(feature = "CGColorSpace")]
18unsafe impl Sync for CGColorSpace {}
19
20// TODO: CGDisplayMode?