20 references to SEGMENT_SIZE
mscorlib (20)
system\Collections\Concurrent\ConcurrentQueue.cs (20)
83Contract.Assert(index >= 0 && index < SEGMENT_SIZE); 87if (index >= SEGMENT_SIZE) 331head.AddToList(list, headLow, SEGMENT_SIZE - 1); 335curr.AddToList(list, 0, SEGMENT_SIZE - 1); 409int count = SEGMENT_SIZE - headLow; 413count += SEGMENT_SIZE * ((int)(tail.m_index - head.m_index - 1)); 520for (int i = headLow; i < SEGMENT_SIZE; i++) 535for (int i = 0; i < SEGMENT_SIZE; i++) 692m_array = new T[SEGMENT_SIZE]; 693m_state = new VolatileBool[SEGMENT_SIZE]; //all initialized to false 727Contract.Assert(m_high < SEGMENT_SIZE - 1); 743Contract.Assert(m_high >= SEGMENT_SIZE - 1); 775if (m_high >= SEGMENT_SIZE - 1) 788int newhigh = SEGMENT_SIZE; //initial value set to be over the boundary 798if (newhigh <= SEGMENT_SIZE - 1) 807if (newhigh == SEGMENT_SIZE - 1) 814return newhigh <= SEGMENT_SIZE - 1; 852if (lowLocal + 1 >= SEGMENT_SIZE) 930return Math.Min(m_low, SEGMENT_SIZE); 944return Math.Min(m_high, SEGMENT_SIZE - 1);