Jellyfish.Commands.Metrics.RollingNumber.Bucket.UpdateMaxMax C# (CSharp) Method

UpdateMaxMax() public method

public UpdateMaxMax ( RollingNumberEvent ev, long value ) : void
ev RollingNumberEvent
value long
return void
            public void UpdateMaxMax(RollingNumberEvent ev, long value)
            {
                long max;
                do
                {
                    max = maxAdders[(int)ev];
                    if (value <= max) return;
                }
                while (Interlocked.CompareExchange(ref maxAdders[(int)ev], value, max) != max);
            }