Skip to content

Commit

Permalink
Document that Apple handles are main thread only
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Oct 13, 2023
1 parent 00aa6c4 commit f963828
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/appkit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ impl AppKitDisplayHandle {
}

/// Raw window handle for AppKit.
///
/// Note that this struct is `!Send` and `!Sync`, so any valid instance of
/// this must only exist on the main thread.
#[non_exhaustive]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct AppKitWindowHandle {
Expand Down
3 changes: 3 additions & 0 deletions src/uikit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ impl UiKitDisplayHandle {
}

/// Raw window handle for UIKit.
///
/// Note that this struct is `!Send` and `!Sync`, so any valid instance of
/// this must only exist on the main thread.
#[non_exhaustive]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct UiKitWindowHandle {
Expand Down

0 comments on commit f963828

Please sign in to comment.