-
Notifications
You must be signed in to change notification settings - Fork 297
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
Replace implementation of AtomicBool
etc. by atomic from the standard library
#1949
Comments
Synced to Apple’s issue tracker as rdar://143438616 |
I wonder if replacing it with a |
I meant |
Perfect! I can take a look at this by the end of this week |
Do we want to always import example: struct Atomic<T> {
let lock: ManagedAtomic<T>
var value: T? {
get { lock.load(ordering: ....) }
set { lock.store(newValue, ordering: ....) }
}
The code above will replace somthing like this: let lock = ManagedAtomic(false)
/// some code
lock.store(v, ordering: ...)
/// more code
if lock.load(ordering: ....) {
} |
I was thinking to use the |
Oh I didn't know that existed within the At the same time wouldn't that only work on swift (And it seems that that Atomics is based on macOS 15, not sure yet. Still trying to figure out why Xcode is misbehaving) |
Yes, we can raise the deployment target to macOS 15 on |
We should be able to raise the deployment target of SourceKit-LSP to macOS 14.0 and thus use the atomics from the standard library.
The text was updated successfully, but these errors were encountered: