Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MainThreadMarker #178

Merged
merged 1 commit into from
Jun 24, 2022
Merged

Add MainThreadMarker #178

merged 1 commit into from
Jun 24, 2022

Conversation

madsmtm
Copy link
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