AtomicBooleanCompareAndSet 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(
bool expected,
bool newValue
)
Public Function CompareAndSet (
expected As Boolean,
newValue As Boolean
) As Boolean
public:
bool CompareAndSet(
bool expected,
bool newValue
)
member CompareAndSet :
expected : bool *
newValue : bool -> bool
Parameters
- expected
- Type: SystemBoolean
[Missing <param name="expected"/> documentation for "M:Akka.Util.AtomicBoolean.CompareAndSet(System.Boolean,System.Boolean)"]
- newValue
- Type: SystemBoolean
[Missing <param name="newValue"/> documentation for "M:Akka.Util.AtomicBoolean.CompareAndSet(System.Boolean,System.Boolean)"]
Return Value
Type:
Boolean[Missing <returns> documentation for "M:Akka.Util.AtomicBoolean.CompareAndSet(System.Boolean,System.Boolean)"]
See Also