Sharpen.AtomicLong.CompareAndSet C# (CSharp) Method

CompareAndSet() public method

public CompareAndSet ( long expect, long update ) : bool
expect long
update long
return bool
		public bool CompareAndSet (long expect, long update)
		{
			return (Interlocked.CompareExchange (ref val, update, expect) == expect);
		}