mirror of
https://github.com/apple/swift-atomics
synced 2026-11-29 05:04:21 +00:00
Remove remaining references to _AtomicValue
This commit is contained in:
3 files changed
+8
-9
No files matched your search
@@ -16,7 +16,6 @@ where
|
||||
RawValue: AtomicValue,
|
||||
RawValue.AtomicRepresentation.Value == RawValue
|
||||
{
|
||||
public typealias _AtomicValue = Self
|
||||
public typealias AtomicRepresentation = AtomicRawRepresentableStorage<Self>
|
||||
}
|
||||
|
||||
|
||||
@@ -20,9 +20,9 @@ ${autogenerated_warning()}
|
||||
@frozen
|
||||
public struct UnsafeAtomic<Value: AtomicValue>
|
||||
where Value.AtomicRepresentation.Value == Value {
|
||||
// Note: the Value._AtomicValue == Value requirement could be relaxed,
|
||||
// Note: the Value.AtomicRepresentation.Value == Value requirement could be relaxed,
|
||||
// at the cost of adding a bunch of potentially ambiguous overloads.
|
||||
// (We'd need one set of implementations for `Value == Value._AtomicValue`,
|
||||
// (We'd need one set of implementations for the type equality condition,
|
||||
// and another for `Value: AtomicReference`.)
|
||||
|
||||
public typealias Storage = Value.AtomicRepresentation
|
||||
@@ -85,9 +85,9 @@ extension UnsafeAtomic: @unchecked Sendable where Value: Sendable {}
|
||||
@_fixed_layout
|
||||
public class ManagedAtomic<Value: AtomicValue>
|
||||
where Value.AtomicRepresentation.Value == Value {
|
||||
// Note: the Value._AtomicValue == Value requirement could be relaxed,
|
||||
// Note: the Value.AtomicRepresentation.Value == Value requirement could be relaxed,
|
||||
// at the cost of adding a bunch of potentially ambiguous overloads.
|
||||
// (We'd need one set of implementations for `Value == Value._AtomicValue`,
|
||||
// (We'd need one set of implementations for the type equality condition,
|
||||
// and another for `Value: AtomicReference`.)
|
||||
|
||||
@usableFromInline
|
||||
|
||||
@@ -22,9 +22,9 @@
|
||||
@frozen
|
||||
public struct UnsafeAtomic<Value: AtomicValue>
|
||||
where Value.AtomicRepresentation.Value == Value {
|
||||
// Note: the Value._AtomicValue == Value requirement could be relaxed,
|
||||
// Note: the Value.AtomicRepresentation.Value == Value requirement could be relaxed,
|
||||
// at the cost of adding a bunch of potentially ambiguous overloads.
|
||||
// (We'd need one set of implementations for `Value == Value._AtomicValue`,
|
||||
// (We'd need one set of implementations for the type equality condition,
|
||||
// and another for `Value: AtomicReference`.)
|
||||
|
||||
public typealias Storage = Value.AtomicRepresentation
|
||||
@@ -87,9 +87,9 @@ extension UnsafeAtomic: @unchecked Sendable where Value: Sendable {}
|
||||
@_fixed_layout
|
||||
public class ManagedAtomic<Value: AtomicValue>
|
||||
where Value.AtomicRepresentation.Value == Value {
|
||||
// Note: the Value._AtomicValue == Value requirement could be relaxed,
|
||||
// Note: the Value.AtomicRepresentation.Value == Value requirement could be relaxed,
|
||||
// at the cost of adding a bunch of potentially ambiguous overloads.
|
||||
// (We'd need one set of implementations for `Value == Value._AtomicValue`,
|
||||
// (We'd need one set of implementations for the type equality condition,
|
||||
// and another for `Value: AtomicReference`.)
|
||||
|
||||
@usableFromInline
|
||||
|
||||
Reference in new issue
Block a user