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

LazyCache is a value type (struct) with a lock inside, that's broken and doesn't work #385

Open
weissi opened this issue Jan 25, 2023 · 0 comments

Comments

@weissi
Copy link
Contributor

weissi commented Jan 25, 2023

https://github.com/apple/swift-tools-support-core/blob/dd1717f2d3225dc79c036c6c9e72ed4e48340d83/Sources/TSCBasic/LazyCache.swift#L33

This needs to be converted to a class to do what it's supposed to do, currently this is very thread-unsafe.

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

No branches or pull requests

1 participant