Lucene.Net.Support.AtomicLong.CompareAndSet C# (CSharp) 메소드

CompareAndSet() 공개 메소드

public CompareAndSet ( long expect, long update ) : bool
expect long
update long
리턴 bool
        public bool CompareAndSet(long expect, long update)
        {
            long rc = Interlocked.CompareExchange(ref value, update, expect);
            return rc == expect;
        }
    }