Skip to content

Add MainThreadMarker#178

Merged
madsmtm merged 1 commit intomasterfrom
main-thread-marker
Jun 24, 2022
Merged

Add MainThreadMarker#178
madsmtm merged 1 commit intomasterfrom
main-thread-marker

Conversation

@madsmtm
Copy link
Copy Markdown
Owner

@madsmtm madsmtm commented Jun 24, 2022

Fixes #27.

Not entirely sure this is the best design, will have to experiment with it in winit, but I think it is useful even if it doesn't help with every case!

I'll defer writing an MainThreadOnly<T> helper class for now, since it is difficult to use across crates due to coherence (making it basically useless).

@madsmtm madsmtm added enhancement New feature or request A-framework Affects the framework crates and the translator for them labels Jun 24, 2022
@madsmtm madsmtm added this to the objc2 v0.3 milestone Jun 24, 2022
@madsmtm madsmtm merged commit 05bf3be into master Jun 24, 2022
@madsmtm madsmtm deleted the main-thread-marker branch June 24, 2022 18:52
@madsmtm madsmtm modified the milestones: objc2 v0.3, icrate v0.1.0 Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-framework Affects the framework crates and the translator for them enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a way to mark things that can only be done on the main thread

1 participant