Static Propertyswift-nio 2.84.0NIOConcurrencyHelpers->Swift
atomic_compare_and_exchange
atomics.swift:350static let atomic_compare_and_exchange: (OpaquePointer, uint_least8_t, uint_least8_t) -> Bool
static let atomic_compare_and_exchange: (OpaquePointer, uint_least8_t, uint_least8_t) -> Bool
ss5UInt8V21NIOConcurrencyHelpersE27atomic_compare_and_exchangeySbs13OpaquePointerV_A2BtYbcvpZ
What are these?85KM9
import Swift
import NIOConcurrencyHelpers
@frozen struct UInt8
An 8-bit unsigned integer value type.
@frozen struct OpaquePointer
A wrapper around an opaque C pointer.
typealias uint_least8_t = __uint_least8_t
@frozen struct Bool
A value type whose instances are either true
or false
.
static let atomic_add: (OpaquePointer, uint_least8_t) -> uint_least8_t
static let atomic_create: (uint_least8_t) -> OpaquePointer
static let atomic_destroy: (OpaquePointer) -> Void
static let atomic_exchange: (OpaquePointer, uint_least8_t) -> uint_least8_t
static let atomic_load: (OpaquePointer) -> uint_least8_t
static let atomic_store: (OpaquePointer, uint_least8_t) -> Void
static let atomic_sub: (OpaquePointer, uint_least8_t) -> uint_least8_t
static let nio_atomic_add: (UnsafeMutablePointer<catmc_nio_atomic_uint_least8_t>, uint_least8_t) -> uint_least8_t
static let nio_atomic_compare_and_exchange: (UnsafeMutablePointer<catmc_nio_atomic_uint_least8_t>, uint_least8_t, uint_least8_t) -> Bool
static let nio_atomic_create_with_existing_storage: (UnsafeMutablePointer<catmc_nio_atomic_uint_least8_t>, uint_least8_t) -> Void
static let nio_atomic_exchange: (UnsafeMutablePointer<catmc_nio_atomic_uint_least8_t>, uint_least8_t) -> uint_least8_t
static let nio_atomic_load: (UnsafeMutablePointer<catmc_nio_atomic_uint_least8_t>) -> uint_least8_t
static let nio_atomic_store: (UnsafeMutablePointer<catmc_nio_atomic_uint_least8_t>, uint_least8_t) -> Void
static let nio_atomic_sub: (UnsafeMutablePointer<catmc_nio_atomic_uint_least8_t>, uint_least8_t) -> uint_least8_t
typealias AtomicWrapper = catmc_nio_atomic_uint_least8_t