Instance Methodswift 6.0.3Synchronization
hash(into:)
- iOS
- 18.0+
- macOS
- 15.0+
- tvOS
- 18.0+
- visionOS
- 2.0+
- watchOS
- 11.0+
func hash(into hasher: inout Hasher)
func hash(into hasher: inout Hasher)
s15Synchronization19AtomicStoreOrderingV4hash4intoys6HasherVz_tF
What are these?9E0FH
import Synchronization
@frozen struct AtomicStoreOrdering
Specifies the memory ordering semantics of an atomic store operation.
@frozen struct Hasher
The universal hash function used by Set
and Dictionary
.
static var relaxed: AtomicStoreOrdering { get }
Guarantees the atomicity of the specific operation on which it is applied, but imposes no ordering constraints on any other variable accesses.
static var releasing: AtomicStoreOrdering { get }
A releasing store synchronizes with acquiring operations that read the value it stores. It ensures that the releasing and acquiring threads agree that all preceding variable accesses on the releasing thread happen before the atomic operation itself.
static var sequentiallyConsistent: AtomicStoreOrdering { get }
A sequentially consistent store performs a releasing store and also guarantees that it and all other sequentially consistent atomic operations (loads, stores, updates) appear to be executed in a single, total sequential ordering.
var description: String { get }
static func == (left: AtomicStoreOrdering, right: AtomicStoreOrdering) -> Bool