Skip to content

Commit

Permalink
Remove remaining references to _AtomicValue
Browse files Browse the repository at this point in the history
  • Loading branch information
lorentey committed Mar 20, 2023
1 parent 5730529 commit 907ce2a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion Sources/Atomics/AtomicRawRepresentable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ where
RawValue: AtomicValue,
RawValue.AtomicRepresentation.Value == RawValue
{
public typealias _AtomicValue = Self
public typealias AtomicRepresentation = AtomicRawRepresentableStorage<Self>
}

Expand Down
8 changes: 4 additions & 4 deletions Sources/Atomics/HighLevelTypes.swift.gyb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions Sources/Atomics/autogenerated/HighLevelTypes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 907ce2a

Please sign in to comment.