AtomicReferenceTCompareAndSet Method |
If
Value equals
[!:expected], then set the Value to
[!:newValue].
Returns true if
[!:newValue] was set, false otherise.
Namespace: Akka.UtilAssembly: Akka (in Akka.dll) Version: 0.8.0.0 (0.8.0.0)
Syntaxpublic bool CompareAndSet(
T expected,
T newValue
)
Public Function CompareAndSet (
expected As T,
newValue As T
) As Boolean
public:
bool CompareAndSet(
T expected,
T newValue
)
member CompareAndSet :
expected : 'T *
newValue : 'T -> bool
Parameters
- expected
- Type: T
[Missing <param name="expected"/> documentation for "M:Akka.Util.AtomicReference`1.CompareAndSet(`0,`0)"]
- newValue
- Type: T
[Missing <param name="newValue"/> documentation for "M:Akka.Util.AtomicReference`1.CompareAndSet(`0,`0)"]
Return Value
Type:
Boolean[Missing <returns> documentation for "M:Akka.Util.AtomicReference`1.CompareAndSet(`0,`0)"]
See Also