compare And Swap Values No Check
open override fun compareAndSwapValuesNoCheck(reference: A_BasicObject, newValue: A_BasicObject): Boolean
Read the variable's value, compare it to a reference value via semantic equality, and if they're equal, store a provided new value into the variable and answer true. Otherwise answer false. If the variable is potentially shared, then ensure suitable locks bracket this entire sequence of operations.
Don't check the newValue's type. It's the client's responsibility to ensure it has a suitable type to be stored in this variable.
If the variable was unassigned, treat it the same as a failed comparison with the reference.
Return
Whether the replacement took place.
Parameters
reference
The value to compare against the variable's current value.
new Value
The replacement value to store if the reference value is equal to the variable's old value.