RawRepresentable

extension RawRepresentable where RawValue == Int
  • Declaration

    Swift

    public static func initialize(_ ref: AtomicIntPointer, to initialValue: Self)
  • Declaration

    Swift

    public static func load(_ ref: AtomicIntPointer, order: AtomicLoadMemoryOrder = .seqcst) -> Self
  • Declaration

    Swift

    public static func store(_ ref: AtomicIntPointer, _ desired: Self, order: AtomicStoreMemoryOrder = .seqcst)
  • Declaration

    Swift

    public static func exchange(_ ref: AtomicIntPointer, _ desired: Self, order: AtomicMemoryOrder = .seqcst) -> Self
  • Declaration

    Swift

    @discardableResult
    public static func compareExchange(
        _ ref: AtomicIntPointer,
        _ expected: UnsafeMutablePointer<Self>,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Bool
  • Declaration

    Swift

    @discardableResult
    public static func compareExchange(
        _ ref: AtomicIntPointer,
        _ expected: Self,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Self
  • Declaration

    Swift

    @discardableResult
    public static func compareExchangeWeak(
        _ ref: AtomicIntPointer,
        _ expected: UnsafeMutablePointer<Self>,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Bool
  • Declaration

    Swift

    @discardableResult
    public static func compareExchangeWeak(
        _ ref: AtomicIntPointer,
        _ expected: Self,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Self
  • Declaration

    Swift

    public static func initialize(_ ref: AtomicInt8Pointer, to initialValue: Self)
  • Declaration

    Swift

    public static func load(_ ref: AtomicInt8Pointer, order: AtomicLoadMemoryOrder = .seqcst) -> Self
  • Declaration

    Swift

    public static func store(_ ref: AtomicInt8Pointer, _ desired: Self, order: AtomicStoreMemoryOrder = .seqcst)
  • Declaration

    Swift

    public static func exchange(_ ref: AtomicInt8Pointer, _ desired: Self, order: AtomicMemoryOrder = .seqcst) -> Self
  • Declaration

    Swift

    @discardableResult
    public static func compareExchange(
        _ ref: AtomicInt8Pointer,
        _ expected: UnsafeMutablePointer<Self>,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Bool
  • Declaration

    Swift

    @discardableResult
    public static func compareExchange(
        _ ref: AtomicInt8Pointer,
        _ expected: Self,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Self
  • Declaration

    Swift

    @discardableResult
    public static func compareExchangeWeak(
        _ ref: AtomicInt8Pointer,
        _ expected: UnsafeMutablePointer<Self>,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Bool
  • Declaration

    Swift

    @discardableResult
    public static func compareExchangeWeak(
        _ ref: AtomicInt8Pointer,
        _ expected: Self,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Self
  • Declaration

    Swift

    public static func initialize(_ ref: AtomicInt16Pointer, to initialValue: Self)
  • Declaration

    Swift

    public static func load(_ ref: AtomicInt16Pointer, order: AtomicLoadMemoryOrder = .seqcst) -> Self
  • Declaration

    Swift

    public static func store(_ ref: AtomicInt16Pointer, _ desired: Self, order: AtomicStoreMemoryOrder = .seqcst)
  • Declaration

    Swift

    public static func exchange(_ ref: AtomicInt16Pointer, _ desired: Self, order: AtomicMemoryOrder = .seqcst) -> Self
  • Declaration

    Swift

    @discardableResult
    public static func compareExchange(
        _ ref: AtomicInt16Pointer,
        _ expected: UnsafeMutablePointer<Self>,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Bool
  • Declaration

    Swift

    @discardableResult
    public static func compareExchange(
        _ ref: AtomicInt16Pointer,
        _ expected: Self,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Self
  • Declaration

    Swift

    @discardableResult
    public static func compareExchangeWeak(
        _ ref: AtomicInt16Pointer,
        _ expected: UnsafeMutablePointer<Self>,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Bool
  • Declaration

    Swift

    @discardableResult
    public static func compareExchangeWeak(
        _ ref: AtomicInt16Pointer,
        _ expected: Self,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Self
  • Declaration

    Swift

    public static func initialize(_ ref: AtomicInt32Pointer, to initialValue: Self)
  • Declaration

    Swift

    public static func load(_ ref: AtomicInt32Pointer, order: AtomicLoadMemoryOrder = .seqcst) -> Self
  • Declaration

    Swift

    public static func store(_ ref: AtomicInt32Pointer, _ desired: Self, order: AtomicStoreMemoryOrder = .seqcst)
  • Declaration

    Swift

    public static func exchange(_ ref: AtomicInt32Pointer, _ desired: Self, order: AtomicMemoryOrder = .seqcst) -> Self
  • Declaration

    Swift

    @discardableResult
    public static func compareExchange(
        _ ref: AtomicInt32Pointer,
        _ expected: UnsafeMutablePointer<Self>,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Bool
  • Declaration

    Swift

    @discardableResult
    public static func compareExchange(
        _ ref: AtomicInt32Pointer,
        _ expected: Self,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Self
  • Declaration

    Swift

    @discardableResult
    public static func compareExchangeWeak(
        _ ref: AtomicInt32Pointer,
        _ expected: UnsafeMutablePointer<Self>,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Bool
  • Declaration

    Swift

    @discardableResult
    public static func compareExchangeWeak(
        _ ref: AtomicInt32Pointer,
        _ expected: Self,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Self
  • Declaration

    Swift

    public static func initialize(_ ref: AtomicInt64Pointer, to initialValue: Self)
  • Declaration

    Swift

    public static func load(_ ref: AtomicInt64Pointer, order: AtomicLoadMemoryOrder = .seqcst) -> Self
  • Declaration

    Swift

    public static func store(_ ref: AtomicInt64Pointer, _ desired: Self, order: AtomicStoreMemoryOrder = .seqcst)
  • Declaration

    Swift

    public static func exchange(_ ref: AtomicInt64Pointer, _ desired: Self, order: AtomicMemoryOrder = .seqcst) -> Self
  • Declaration

    Swift

    @discardableResult
    public static func compareExchange(
        _ ref: AtomicInt64Pointer,
        _ expected: UnsafeMutablePointer<Self>,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Bool
  • Declaration

    Swift

    @discardableResult
    public static func compareExchange(
        _ ref: AtomicInt64Pointer,
        _ expected: Self,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Self
  • Declaration

    Swift

    @discardableResult
    public static func compareExchangeWeak(
        _ ref: AtomicInt64Pointer,
        _ expected: UnsafeMutablePointer<Self>,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Bool
  • Declaration

    Swift

    @discardableResult
    public static func compareExchangeWeak(
        _ ref: AtomicInt64Pointer,
        _ expected: Self,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Self
  • Declaration

    Swift

    public static func initialize(_ ref: AtomicUIntPointer, to initialValue: Self)
  • Declaration

    Swift

    public static func load(_ ref: AtomicUIntPointer, order: AtomicLoadMemoryOrder = .seqcst) -> Self
  • Declaration

    Swift

    public static func store(_ ref: AtomicUIntPointer, _ desired: Self, order: AtomicStoreMemoryOrder = .seqcst)
  • Declaration

    Swift

    public static func exchange(_ ref: AtomicUIntPointer, _ desired: Self, order: AtomicMemoryOrder = .seqcst) -> Self
  • Declaration

    Swift

    @discardableResult
    public static func compareExchange(
        _ ref: AtomicUIntPointer,
        _ expected: UnsafeMutablePointer<Self>,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Bool
  • Declaration

    Swift

    @discardableResult
    public static func compareExchange(
        _ ref: AtomicUIntPointer,
        _ expected: Self,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Self
  • Declaration

    Swift

    @discardableResult
    public static func compareExchangeWeak(
        _ ref: AtomicUIntPointer,
        _ expected: UnsafeMutablePointer<Self>,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Bool
  • Declaration

    Swift

    @discardableResult
    public static func compareExchangeWeak(
        _ ref: AtomicUIntPointer,
        _ expected: Self,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Self
  • Declaration

    Swift

    public static func initialize(_ ref: AtomicUInt8Pointer, to initialValue: Self)
  • Declaration

    Swift

    public static func load(_ ref: AtomicUInt8Pointer, order: AtomicLoadMemoryOrder = .seqcst) -> Self
  • Declaration

    Swift

    public static func store(_ ref: AtomicUInt8Pointer, _ desired: Self, order: AtomicStoreMemoryOrder = .seqcst)
  • Declaration

    Swift

    public static func exchange(_ ref: AtomicUInt8Pointer, _ desired: Self, order: AtomicMemoryOrder = .seqcst) -> Self
  • Declaration

    Swift

    @discardableResult
    public static func compareExchange(
        _ ref: AtomicUInt8Pointer,
        _ expected: UnsafeMutablePointer<Self>,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Bool
  • Declaration

    Swift

    @discardableResult
    public static func compareExchange(
        _ ref: AtomicUInt8Pointer,
        _ expected: Self,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Self
  • Declaration

    Swift

    @discardableResult
    public static func compareExchangeWeak(
        _ ref: AtomicUInt8Pointer,
        _ expected: UnsafeMutablePointer<Self>,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Bool
  • Declaration

    Swift

    @discardableResult
    public static func compareExchangeWeak(
        _ ref: AtomicUInt8Pointer,
        _ expected: Self,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Self
  • Declaration

    Swift

    public static func initialize(_ ref: AtomicUInt16Pointer, to initialValue: Self)
  • Declaration

    Swift

    public static func load(_ ref: AtomicUInt16Pointer, order: AtomicLoadMemoryOrder = .seqcst) -> Self
  • Declaration

    Swift

    public static func store(_ ref: AtomicUInt16Pointer, _ desired: Self, order: AtomicStoreMemoryOrder = .seqcst)
  • Declaration

    Swift

    public static func exchange(_ ref: AtomicUInt16Pointer, _ desired: Self, order: AtomicMemoryOrder = .seqcst) -> Self
  • Declaration

    Swift

    @discardableResult
    public static func compareExchange(
        _ ref: AtomicUInt16Pointer,
        _ expected: UnsafeMutablePointer<Self>,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Bool
  • Declaration

    Swift

    @discardableResult
    public static func compareExchange(
        _ ref: AtomicUInt16Pointer,
        _ expected: Self,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Self
  • Declaration

    Swift

    @discardableResult
    public static func compareExchangeWeak(
        _ ref: AtomicUInt16Pointer,
        _ expected: UnsafeMutablePointer<Self>,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Bool
  • Declaration

    Swift

    @discardableResult
    public static func compareExchangeWeak(
        _ ref: AtomicUInt16Pointer,
        _ expected: Self,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Self
  • Declaration

    Swift

    public static func initialize(_ ref: AtomicUInt32Pointer, to initialValue: Self)
  • Declaration

    Swift

    public static func load(_ ref: AtomicUInt32Pointer, order: AtomicLoadMemoryOrder = .seqcst) -> Self
  • Declaration

    Swift

    public static func store(_ ref: AtomicUInt32Pointer, _ desired: Self, order: AtomicStoreMemoryOrder = .seqcst)
  • Declaration

    Swift

    public static func exchange(_ ref: AtomicUInt32Pointer, _ desired: Self, order: AtomicMemoryOrder = .seqcst) -> Self
  • Declaration

    Swift

    @discardableResult
    public static func compareExchange(
        _ ref: AtomicUInt32Pointer,
        _ expected: UnsafeMutablePointer<Self>,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Bool
  • Declaration

    Swift

    @discardableResult
    public static func compareExchange(
        _ ref: AtomicUInt32Pointer,
        _ expected: Self,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Self
  • Declaration

    Swift

    @discardableResult
    public static func compareExchangeWeak(
        _ ref: AtomicUInt32Pointer,
        _ expected: UnsafeMutablePointer<Self>,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Bool
  • Declaration

    Swift

    @discardableResult
    public static func compareExchangeWeak(
        _ ref: AtomicUInt32Pointer,
        _ expected: Self,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Self
  • Declaration

    Swift

    public static func initialize(_ ref: AtomicUInt64Pointer, to initialValue: Self)
  • Declaration

    Swift

    public static func load(_ ref: AtomicUInt64Pointer, order: AtomicLoadMemoryOrder = .seqcst) -> Self
  • Declaration

    Swift

    public static func store(_ ref: AtomicUInt64Pointer, _ desired: Self, order: AtomicStoreMemoryOrder = .seqcst)
  • Declaration

    Swift

    public static func exchange(_ ref: AtomicUInt64Pointer, _ desired: Self, order: AtomicMemoryOrder = .seqcst) -> Self
  • Declaration

    Swift

    @discardableResult
    public static func compareExchange(
        _ ref: AtomicUInt64Pointer,
        _ expected: UnsafeMutablePointer<Self>,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Bool
  • Declaration

    Swift

    @discardableResult
    public static func compareExchange(
        _ ref: AtomicUInt64Pointer,
        _ expected: Self,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Self
  • Declaration

    Swift

    @discardableResult
    public static func compareExchangeWeak(
        _ ref: AtomicUInt64Pointer,
        _ expected: UnsafeMutablePointer<Self>,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Bool
  • Declaration

    Swift

    @discardableResult
    public static func compareExchangeWeak(
        _ ref: AtomicUInt64Pointer,
        _ expected: Self,
        _ desired: Self,
        order: AtomicMemoryOrder = .seqcst,
        loadOrder: AtomicLoadMemoryOrder? = nil
    ) -> Self