3 writes to _lastReadPosition
PresentationFramework (3)
System\Windows\Controls\ScrollViewer.cs (3)
2133_lastWritePosition = _lastReadPosition = 0; 2143_lastReadPosition = (_lastReadPosition + 1) % _capacity; 2182_lastReadPosition = (_lastReadPosition + 1) % _capacity;
10 references to _lastReadPosition
PresentationFramework (10)
System\Windows\Controls\ScrollViewer.cs (10)
2130if(_lastWritePosition == _lastReadPosition) //buffer is empty 2140if(_lastWritePosition == _lastReadPosition) //buffer is full 2143_lastReadPosition = (_lastReadPosition + 1) % _capacity; 2156if(_lastWritePosition != _lastReadPosition) //buffer has something 2178if(_lastWritePosition == _lastReadPosition) //buffer is empty 2182_lastReadPosition = (_lastReadPosition + 1) % _capacity; 2185Command command = _array[_lastReadPosition]; 2186_array[_lastReadPosition].MakeVisibleParam = null; //to release the allocated object 2188if(_lastWritePosition == _lastReadPosition) //it was the last command 2197return (_lastWritePosition == _lastReadPosition);