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

Fix data races in SettingsBuilder. #1233

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kotovmax
Copy link

Reason:

  • configFileSettings and settingPresetSettings caches were just global dictionaries. Data races were taken place at these points when multiple projects are generated in parallel.

Content:

  • Dictionaries for caches moved to NSCache which is thread safe.

**Reason:**
- `configFileSettings` and `settingPresetSettings` caches were just global dictionaries. Data races were taken place at these points when multiple projects are generated in parallel.

**Content:**
- Dictionaries for caches moved to NSCache which is thread safe.
@@ -0,0 +1,37 @@
import XcodeProj
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw, maybe the proper place for this file is XcodeGenCore target
Because, XcodeGenKit target mostly contains public business logic, closely related to project generation

@kotovmax
Copy link
Author

@yonaskolb review this PR please) Thanks in advance!)

@kotovmax
Copy link
Author

kotovmax commented Aug 6, 2022

@yonaskolb, please, review this PR)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants