From 034d2340dad3bf5371338950b63d493da81b98da Mon Sep 17 00:00:00 2001 From: Dillon Daudert Date: Tue, 19 Nov 2019 00:23:11 -0500 Subject: [PATCH] Update docs for atomic ptr --- base/atomics.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/atomics.jl b/base/atomics.jl index 072e5d3d3a9671..4c014ec5d4636a 100644 --- a/base/atomics.jl +++ b/base/atomics.jl @@ -24,7 +24,6 @@ else end const floattypes = (Float16, Float32, Float64) const arithmetictypes = (inttypes..., floattypes..., Ptr) -# TODO: Support Ptr const atomictypes = (arithmetictypes..., Bool) const IntTypes = Union{inttypes...} const FloatTypes = Union{floattypes...} @@ -39,7 +38,8 @@ accessed atomically, i.e. in a thread-safe manner. Only certain "simple" types can be used atomically, namely the primitive boolean, integer, and float-point types. These are `Bool`, -`Int8`...`Int128`, `UInt8`...`UInt128`, and `Float16`...`Float64`. +`Int8`...`Int128`, `UInt8`...`UInt128`, and `Float16`...`Float64`. +Additionally, atomic operations on `Ptr` are also supported. New atomic objects can be created from a non-atomic values; if none is specified, the atomic object is initialized with zero.