dmd ~master (2023-11-01T14:17:50Z)
Dub
Repo
cas.cas
core
atomic
cas
Compare-and-set for
shared
reference type (
class
)
bool
cas
(T* here, V1 ifThis, V2 writeThis)
bool
cas
(shared(T)* here, V1 ifThis, V2 writeThis)
bool
cas
(shared(T)* here, shared(V1) ifThis, shared(V2) writeThis)
template
cas
(MemoryOrder succ = MemoryOrder.seq, MemoryOrder fail = MemoryOrder.seq)
pure nothrow @
nogc
@
trusted
bool
cas
(
T
V1
V2
)
(
shared
(
T
)*
here
,
shared
(
V1
)
ifThis
,
shared
(
V2
)
writeThis
)
if
(
is
(
T
== class)
)
bool
cas
(T* here, T* ifThis, V writeThis)
bool
cas
(shared(T)* here, V1* ifThis, V2 writeThis)
bool
cas
(shared(T)* here, shared(T)* ifThis, shared(V) writeThis)
Meta
Source
See Implementation
core
atomic
cas
functions
cas
Compare-and-set for shared reference type (class)