Helios.Util.InternalThreadLocalMap.NextVariableIndex C# (CSharp) Method

NextVariableIndex() static private method

static private NextVariableIndex ( ) : int
return int
        internal static int NextVariableIndex()
        {
            int index = Interlocked.Increment(ref nextIndex);
            if (index < 0)
            {
                Interlocked.Decrement(ref nextIndex);
                throw new InvalidOperationException("too many thread-local indexed variables");
            }
            return index;
        }