swift-atomics icon indicating copy to clipboard operation
swift-atomics copied to clipboard

Low-level atomic operations for Swift

Results 24 swift-atomics issues
Sort by recently updated
recently updated
newest added

I am trying to import swift-atomics into a Playground. This fails to compile the shims because Playgrounds don't (and as far as I can tell, won't) link `libswiftCore.dylib`. This is...

bug

Resolves #45. ### Checklist - [X] I've read the [Contribution Guidelines](/README.md#contributing-to-swift-atomics) - [X] My contributions are licensed under the [Swift license](/LICENSE.txt). - [X] I've followed the coding style of the...

Swift Atomics doesn't compile on Windows. ### Information - **Package version:** `main`, `1.0.2` - **Platform version:** Windows 10 21H1 - **Swift version:** compnerd.org Swift version 5.6.2 (swift-5.6.2-RELEASE) ### Checklist -...

bug

In static library swift file, on attempt to `import Atomics` I'm getting `Missing required module '_AtomicsShims'` error. This is structure of project in a nutshell: 1. StaticLibA // has `Atomics`...

enhancement

From Itai on the forum: (https://forums.swift.org/t/swift-5-7-6-and-non-final-class-opt-in-to-atomicreference/58509) Consider a class `Cls`, to which we'd like to be able to make an atomic reference via `ManagedAtomic`. This class is intentionally the root...

bug

Swift 5.5 [introduces `Sendable`][se-0302], which puts new constraints on transferring values across concurrency domains. [se-0302]: https://github.com/apple/swift-evolution/blob/main/proposals/0302-concurrent-value-and-concurrent-closures.md The constructs provided by this package are designed to be safe to use without...

bug

Beta builds of Xcode 13.3 fix the double wide atomic load issue in https://github.com/apple/swift-atomics/issues/41, so the workaround is no longer necessary to apply in Swift 5.6. Once Xcode 13.3 gets...

bug

Implement `AtomicValue` conformances for `Float`, `Double` and `Float16`. Requirements/constraints: - `compareExchange` must compare the underlying encoded bit patterns rather than performing actual floating point comparisons. (I.e., it must consider negative...

enhancement

Swift Atomics currently exposes and/xor/or operations on booleans, and maps them to `atomic_fetch_XXX_explicit` calls in C. However, C17 does not define these operations on `_Atomic(_Bool)`; it only defines them for...

bug