Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CoreFoundation] Ensure that we are thread safe. (dotnet#7391)
CFBundleGetAllBundles as per Apple docs is not thread safe, this means that when we loop over the bundles, and use a property, the value is updated by a different thread. This means that in some weird cases we get an IndexOutOfBounds exception. We now store the count and use it in the loop. Fixes: xamarin/maccore#940
- Loading branch information