|
11 | 11 | //===----------------------------------------------------------------------===// |
12 | 12 |
|
13 | 13 | //===----------------------------------------------------------------------===// |
14 | | -// UnsafePointer AtomicValue and AtomicOptionalWrappable conformance |
| 14 | +// UnsafePointer AtomicRepresentable and AtomicOptionalRepresentable conformance |
15 | 15 | //===----------------------------------------------------------------------===// |
16 | 16 |
|
17 | 17 | @available(SwiftStdlib 5.11, *) |
18 | | -extension UnsafePointer: AtomicValue { |
| 18 | +extension UnsafePointer: AtomicRepresentable { |
19 | 19 | /// The storage representation type that `Self` encodes to and decodes from |
20 | 20 | /// which is a suitable type when used in atomic operations. |
21 | 21 | @available(SwiftStdlib 5.11, *) |
@@ -65,7 +65,7 @@ extension UnsafePointer: AtomicValue { |
65 | 65 | } |
66 | 66 |
|
67 | 67 | @available(SwiftStdlib 5.11, *) |
68 | | -extension UnsafePointer: AtomicOptionalWrappable { |
| 68 | +extension UnsafePointer: AtomicOptionalRepresentable { |
69 | 69 | /// The storage representation type that encodes to and decodes from |
70 | 70 | /// `Optional<Self>` which is a suitable type when used in atomic operations |
71 | 71 | /// on `Optional`. |
@@ -117,11 +117,11 @@ extension UnsafePointer: AtomicOptionalWrappable { |
117 | 117 | } |
118 | 118 |
|
119 | 119 | //===----------------------------------------------------------------------===// |
120 | | -// UnsafeMutablePointer AtomicOptionalWrappable conformance |
| 120 | +// UnsafeMutablePointer AtomicRepresentable and AtomicOptionalRepresentable conformance |
121 | 121 | //===----------------------------------------------------------------------===// |
122 | 122 |
|
123 | 123 | @available(SwiftStdlib 5.11, *) |
124 | | -extension UnsafeMutablePointer: AtomicValue { |
| 124 | +extension UnsafeMutablePointer: AtomicRepresentable { |
125 | 125 | /// The storage representation type that `Self` encodes to and decodes from |
126 | 126 | /// which is a suitable type when used in atomic operations. |
127 | 127 | @available(SwiftStdlib 5.11, *) |
@@ -171,7 +171,7 @@ extension UnsafeMutablePointer: AtomicValue { |
171 | 171 | } |
172 | 172 |
|
173 | 173 | @available(SwiftStdlib 5.11, *) |
174 | | -extension UnsafeMutablePointer: AtomicOptionalWrappable { |
| 174 | +extension UnsafeMutablePointer: AtomicOptionalRepresentable { |
175 | 175 | /// The storage representation type that encodes to and decodes from |
176 | 176 | /// `Optional<Self>` which is a suitable type when used in atomic operations |
177 | 177 | /// on `Optional`. |
@@ -223,11 +223,11 @@ extension UnsafeMutablePointer: AtomicOptionalWrappable { |
223 | 223 | } |
224 | 224 |
|
225 | 225 | //===----------------------------------------------------------------------===// |
226 | | -// UnsafeRawPointer AtomicOptionalWrappable conformance |
| 226 | +// UnsafeRawPointer AtomicRepresentable and AtomicOptionalRepresentable conformance |
227 | 227 | //===----------------------------------------------------------------------===// |
228 | 228 |
|
229 | 229 | @available(SwiftStdlib 5.11, *) |
230 | | -extension UnsafeRawPointer: AtomicValue { |
| 230 | +extension UnsafeRawPointer: AtomicRepresentable { |
231 | 231 | /// The storage representation type that `Self` encodes to and decodes from |
232 | 232 | /// which is a suitable type when used in atomic operations. |
233 | 233 | @available(SwiftStdlib 5.11, *) |
@@ -277,7 +277,7 @@ extension UnsafeRawPointer: AtomicValue { |
277 | 277 | } |
278 | 278 |
|
279 | 279 | @available(SwiftStdlib 5.11, *) |
280 | | -extension UnsafeRawPointer: AtomicOptionalWrappable { |
| 280 | +extension UnsafeRawPointer: AtomicOptionalRepresentable { |
281 | 281 | /// The storage representation type that encodes to and decodes from |
282 | 282 | /// `Optional<Self>` which is a suitable type when used in atomic operations |
283 | 283 | /// on `Optional`. |
@@ -329,11 +329,11 @@ extension UnsafeRawPointer: AtomicOptionalWrappable { |
329 | 329 | } |
330 | 330 |
|
331 | 331 | //===----------------------------------------------------------------------===// |
332 | | -// UnsafeMutableRawPointer AtomicOptionalWrappable conformance |
| 332 | +// UnsafeMutableRawPointer AtomicRepresentable and AtomicOptionalRepresentable conformance |
333 | 333 | //===----------------------------------------------------------------------===// |
334 | 334 |
|
335 | 335 | @available(SwiftStdlib 5.11, *) |
336 | | -extension UnsafeMutableRawPointer: AtomicValue { |
| 336 | +extension UnsafeMutableRawPointer: AtomicRepresentable { |
337 | 337 | /// The storage representation type that `Self` encodes to and decodes from |
338 | 338 | /// which is a suitable type when used in atomic operations. |
339 | 339 | @available(SwiftStdlib 5.11, *) |
@@ -383,7 +383,7 @@ extension UnsafeMutableRawPointer: AtomicValue { |
383 | 383 | } |
384 | 384 |
|
385 | 385 | @available(SwiftStdlib 5.11, *) |
386 | | -extension UnsafeMutableRawPointer: AtomicOptionalWrappable { |
| 386 | +extension UnsafeMutableRawPointer: AtomicOptionalRepresentable { |
387 | 387 | /// The storage representation type that encodes to and decodes from |
388 | 388 | /// `Optional<Self>` which is a suitable type when used in atomic operations |
389 | 389 | /// on `Optional`. |
@@ -435,11 +435,11 @@ extension UnsafeMutableRawPointer: AtomicOptionalWrappable { |
435 | 435 | } |
436 | 436 |
|
437 | 437 | //===----------------------------------------------------------------------===// |
438 | | -// Unmanaged AtomicOptionalWrappable conformance |
| 438 | +// Unmanaged AtomicRepresentable and AtomicOptionalRepresentable conformance |
439 | 439 | //===----------------------------------------------------------------------===// |
440 | 440 |
|
441 | 441 | @available(SwiftStdlib 5.11, *) |
442 | | -extension Unmanaged: AtomicValue { |
| 442 | +extension Unmanaged: AtomicRepresentable { |
443 | 443 | /// The storage representation type that `Self` encodes to and decodes from |
444 | 444 | /// which is a suitable type when used in atomic operations. |
445 | 445 | @available(SwiftStdlib 5.11, *) |
@@ -489,7 +489,7 @@ extension Unmanaged: AtomicValue { |
489 | 489 | } |
490 | 490 |
|
491 | 491 | @available(SwiftStdlib 5.11, *) |
492 | | -extension Unmanaged: AtomicOptionalWrappable { |
| 492 | +extension Unmanaged: AtomicOptionalRepresentable { |
493 | 493 | /// The storage representation type that encodes to and decodes from |
494 | 494 | /// `Optional<Self>` which is a suitable type when used in atomic operations |
495 | 495 | /// on `Optional`. |
@@ -549,11 +549,11 @@ extension Unmanaged: AtomicOptionalWrappable { |
549 | 549 | } |
550 | 550 |
|
551 | 551 | //===----------------------------------------------------------------------===// |
552 | | -// OpaquePointer AtomicOptionalWrappable conformance |
| 552 | +// OpaquePointer AtomicRepresentable and AtomicOptionalRepresentable conformance |
553 | 553 | //===----------------------------------------------------------------------===// |
554 | 554 |
|
555 | 555 | @available(SwiftStdlib 5.11, *) |
556 | | -extension OpaquePointer: AtomicValue { |
| 556 | +extension OpaquePointer: AtomicRepresentable { |
557 | 557 | /// The storage representation type that `Self` encodes to and decodes from |
558 | 558 | /// which is a suitable type when used in atomic operations. |
559 | 559 | @available(SwiftStdlib 5.11, *) |
@@ -603,7 +603,7 @@ extension OpaquePointer: AtomicValue { |
603 | 603 | } |
604 | 604 |
|
605 | 605 | @available(SwiftStdlib 5.11, *) |
606 | | -extension OpaquePointer: AtomicOptionalWrappable { |
| 606 | +extension OpaquePointer: AtomicOptionalRepresentable { |
607 | 607 | /// The storage representation type that encodes to and decodes from |
608 | 608 | /// `Optional<Self>` which is a suitable type when used in atomic operations |
609 | 609 | /// on `Optional`. |
@@ -655,11 +655,11 @@ extension OpaquePointer: AtomicOptionalWrappable { |
655 | 655 | } |
656 | 656 |
|
657 | 657 | //===----------------------------------------------------------------------===// |
658 | | -// ObjectIdentifier AtomicOptionalWrappable conformance |
| 658 | +// ObjectIdentifier AtomicRepresentable and AtomicOptionalRepresentable conformance |
659 | 659 | //===----------------------------------------------------------------------===// |
660 | 660 |
|
661 | 661 | @available(SwiftStdlib 5.11, *) |
662 | | -extension ObjectIdentifier: AtomicValue { |
| 662 | +extension ObjectIdentifier: AtomicRepresentable { |
663 | 663 | /// The storage representation type that `Self` encodes to and decodes from |
664 | 664 | /// which is a suitable type when used in atomic operations. |
665 | 665 | @available(SwiftStdlib 5.11, *) |
@@ -711,7 +711,7 @@ extension ObjectIdentifier: AtomicValue { |
711 | 711 | } |
712 | 712 |
|
713 | 713 | @available(SwiftStdlib 5.11, *) |
714 | | -extension ObjectIdentifier: AtomicOptionalWrappable { |
| 714 | +extension ObjectIdentifier: AtomicOptionalRepresentable { |
715 | 715 | /// The storage representation type that encodes to and decodes from |
716 | 716 | /// `Optional<Self>` which is a suitable type when used in atomic operations |
717 | 717 | /// on `Optional`. |
@@ -767,13 +767,13 @@ extension ObjectIdentifier: AtomicOptionalWrappable { |
767 | 767 | } |
768 | 768 |
|
769 | 769 | //===----------------------------------------------------------------------===// |
770 | | -// UnsafeBufferPointer AtomicValue conformance |
| 770 | +// UnsafeBufferPointer AtomicRepresentable conformance |
771 | 771 | //===----------------------------------------------------------------------===// |
772 | 772 |
|
773 | 773 | #if (_pointerBitWidth(_32) && _hasAtomicBitWidth(_64)) || (_pointerBitWidth(_64) && _hasAtomicBitWidth(_128)) |
774 | 774 |
|
775 | 775 | @available(SwiftStdlib 5.11, *) |
776 | | -extension UnsafeBufferPointer: AtomicValue { |
| 776 | +extension UnsafeBufferPointer: AtomicRepresentable { |
777 | 777 | /// The storage representation type that `Self` encodes to and decodes from |
778 | 778 | /// which is a suitable type when used in atomic operations. |
779 | 779 | @available(SwiftStdlib 5.11, *) |
@@ -833,13 +833,13 @@ extension UnsafeBufferPointer: AtomicValue { |
833 | 833 | #endif |
834 | 834 |
|
835 | 835 | //===----------------------------------------------------------------------===// |
836 | | -// UnsafeMutableBufferPointer AtomicValue conformance |
| 836 | +// UnsafeMutableBufferPointer AtomicRepresentable conformance |
837 | 837 | //===----------------------------------------------------------------------===// |
838 | 838 |
|
839 | 839 | #if (_pointerBitWidth(_32) && _hasAtomicBitWidth(_64)) || (_pointerBitWidth(_64) && _hasAtomicBitWidth(_128)) |
840 | 840 |
|
841 | 841 | @available(SwiftStdlib 5.11, *) |
842 | | -extension UnsafeMutableBufferPointer: AtomicValue { |
| 842 | +extension UnsafeMutableBufferPointer: AtomicRepresentable { |
843 | 843 | /// The storage representation type that `Self` encodes to and decodes from |
844 | 844 | /// which is a suitable type when used in atomic operations. |
845 | 845 | @available(SwiftStdlib 5.11, *) |
@@ -899,13 +899,13 @@ extension UnsafeMutableBufferPointer: AtomicValue { |
899 | 899 | #endif |
900 | 900 |
|
901 | 901 | //===----------------------------------------------------------------------===// |
902 | | -// UnsafeRawBufferPointer AtomicValue conformance |
| 902 | +// UnsafeRawBufferPointer AtomicRepresentable conformance |
903 | 903 | //===----------------------------------------------------------------------===// |
904 | 904 |
|
905 | 905 | #if (_pointerBitWidth(_32) && _hasAtomicBitWidth(_64)) || (_pointerBitWidth(_64) && _hasAtomicBitWidth(_128)) |
906 | 906 |
|
907 | 907 | @available(SwiftStdlib 5.11, *) |
908 | | -extension UnsafeRawBufferPointer: AtomicValue { |
| 908 | +extension UnsafeRawBufferPointer: AtomicRepresentable { |
909 | 909 | /// The storage representation type that `Self` encodes to and decodes from |
910 | 910 | /// which is a suitable type when used in atomic operations. |
911 | 911 | @available(SwiftStdlib 5.11, *) |
@@ -965,13 +965,13 @@ extension UnsafeRawBufferPointer: AtomicValue { |
965 | 965 | #endif |
966 | 966 |
|
967 | 967 | //===----------------------------------------------------------------------===// |
968 | | -// UnsafeMutableRawBufferPointer AtomicValue conformance |
| 968 | +// UnsafeMutableRawBufferPointer AtomicRepresentable conformance |
969 | 969 | //===----------------------------------------------------------------------===// |
970 | 970 |
|
971 | 971 | #if (_pointerBitWidth(_32) && _hasAtomicBitWidth(_64)) || (_pointerBitWidth(_64) && _hasAtomicBitWidth(_128)) |
972 | 972 |
|
973 | 973 | @available(SwiftStdlib 5.11, *) |
974 | | -extension UnsafeMutableRawBufferPointer: AtomicValue { |
| 974 | +extension UnsafeMutableRawBufferPointer: AtomicRepresentable { |
975 | 975 | /// The storage representation type that `Self` encodes to and decodes from |
976 | 976 | /// which is a suitable type when used in atomic operations. |
977 | 977 | @available(SwiftStdlib 5.11, *) |
|
0 commit comments