Skip to content
Prev Previous commit
Next Next commit
Update deprecation messages
  • Loading branch information
stevapple committed Jun 28, 2022
commit bcd97b85578bff324b9dacb9358101c1bf06f57c
2 changes: 1 addition & 1 deletion Sources/NIOConcurrencyHelpers/NIOAtomic.swift
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ extension UInt: NIOAtomicPrimitive {
/// By necessity, all atomic values are references: after all, it makes no
/// sense to talk about managing an atomic value when each time it's modified
/// the thread that modified it gets a local copy!
@available(*, deprecated, message:"please use Atomics.ManagedAtomic instead")
@available(*, deprecated, message:"please use ManagedAtomic from https://github.com/apple/swift-atomics instead")
public final class NIOAtomic<T: NIOAtomicPrimitive> {
@usableFromInline
typealias Manager = ManagedBufferPointer<Void, T.AtomicWrapper>
Expand Down
4 changes: 2 additions & 2 deletions Sources/NIOConcurrencyHelpers/atomics.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fileprivate func sys_sched_yield() {
/// Atomic primitives are useful when building constructs that need to
/// communicate or cooperate across multiple threads. In the case of
/// SwiftNIO this usually involves communicating across multiple event loops.
@available(*, deprecated, message: "please use Atomics.UnsafeAtomic instead")
@available(*, deprecated, message: "please use UnsafeAtomic from https://github.com/apple/swift-atomics instead")
public struct UnsafeEmbeddedAtomic<T: AtomicPrimitive> {
@usableFromInline
internal let value: OpaquePointer
Expand Down Expand Up @@ -174,7 +174,7 @@ public struct UnsafeEmbeddedAtomic<T: AtomicPrimitive> {
/// By necessity, all atomic values are references: after all, it makes no
/// sense to talk about managing an atomic value when each time it's modified
/// the thread that modified it gets a local copy!
@available(*, deprecated, message:"please use Atomics.ManagedAtomic instead")
@available(*, deprecated, message:"please use ManagedAtomic from https://github.com/apple/swift-atomics instead")
public final class Atomic<T: AtomicPrimitive> {
@usableFromInline
internal let embedded: UnsafeEmbeddedAtomic<T>
Expand Down