Skip to content

Commit

Permalink
Update docs for atomic ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
dillondaudert committed Dec 3, 2019
1 parent 48e0725 commit 034d234
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/atomics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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...}
Expand All @@ -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.
Expand Down

0 comments on commit 034d234

Please sign in to comment.