Sharpen.AtomicInteger.GetAndSet C# (CSharp) Method

GetAndSet() public method

public GetAndSet ( int newValue ) : int
newValue int
return int
		public int GetAndSet (int newValue)
		{
			return Interlocked.Exchange (ref val, newValue);
		}