System.Threading.AtomicBooleanValue.Exchange C# (CSharp) Method

Exchange() public method

public Exchange ( bool newVal ) : bool
newVal bool
return bool
		public bool Exchange (bool newVal)
		{
			int newTemp = newVal ? Set : UnSet;
			return AotInterlocked.Exchange (ref flag, newTemp) == Set;
		}