Skip to content

Commit b7b3b38

Browse files
leiosvchuravy
andauthored
Update src/atomics.jl
Co-authored-by: Valentin Churavy <vchuravy@users.noreply.github.com>
1 parent 7c36a92 commit b7b3b38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/atomics.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ end
5151

5252
# TODO: Not sure what this one is...
5353
function atomic_cas!(ptr::Ptr{T}, old::T, new::T) where T
54-
Core.Intrinsics.atomic_pointerswap(ptr::Ptr{T}, x::T, :monotonic)
54+
Core.Intrinsics.atomic_pointerreplace(ptr::Ptr{T}, old, new, :release_acquire, :monotonic)
5555
end
5656

5757
# TODO: Not sure what this one is...

0 commit comments

Comments
 (0)