dotnet / dotnet/macios

[generator|tests] Leverage Apple's Main Thread Checker to get correct [ThreadSafe] checks

Open
#5,237 7 comments 1 reaction 0 assignees View on GitHub
enhancement generator iOS macOS
Dominant language
C#
Stars
2.9k
Forks
576
Avg merge
2d 12h
Merged PRs (30d)
123

Description

### Description

We currently try to guess what is thread safe based on documentation, experience and reports like [5235](https://github.com/xamarin/xamarin-macios/issues/5235), [5234](https://github.com/xamarin/xamarin-macios/issues/5234), [5233](https://github.com/xamarin/xamarin-macios/issues/5233), etc. In Xcode 9, Apple [introduced Main Thread Checker](https://developer.apple.com/documentation/code_diagnostics/main_thread_checker?language=objc) we should find a way to leverage it in our advantage maybe as part of one of our test suites (intro) or as a brand new test.

We might need to adjust the generator once we find a way to do the above.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.