AtomicBoolean..::..CompareAndSet Method

If Value equals [expected], then set the Value to [newValue]. Returns true if [newValue] was set, false otherise.

Namespace:  Akka.Util
Assembly:  Akka (in Akka.dll)

Syntax


public bool CompareAndSet(
	bool expected,
	bool newValue
)
Public Function CompareAndSet ( _
	expected As Boolean, _
	newValue As Boolean _
) As Boolean
public:
bool^ CompareAndSet(
	bool^ expected, 
	bool^ newValue
)

Parameters

expected
Type: Boolean
newValue
Type: Boolean