FreezableAtomicReference
This class was useful only with legacy memory manager. Please use AtomicReference instead.
Constructors
<init>
This class was useful only with legacy memory manager. Please use AtomicReference instead.
FreezableAtomicReference
(
value
:
T
)
Properties
value
var
value
:
T
Functions
compareAndSet
Atomically sets the value to the given new value if the current value equals the expected value and returns true if operation was successful.
fun
compareAndSet
(
expected
:
T
,
newValue
:
T
)
:
Boolean
compareAndSwap
Atomically sets the value to the given new value if the current value equals the expected value and returns the old value in any case.
fun
compareAndSwap
(
expected
:
T
,
newValue
:
T
)
:
T
toString
Returns the string representation of this object.
fun
toString
(
)
:
String