2 writes to _lastWritePosition
PresentationFramework (2)
System\Windows\Controls\ScrollViewer.cs (2)
2135_lastWritePosition = _lastReadPosition = 0; 2140_lastWritePosition = (_lastWritePosition + 1) % _capacity;
13 references to _lastWritePosition
PresentationFramework (13)
System\Windows\Controls\ScrollViewer.cs (13)
2132if(_lastWritePosition == _lastReadPosition) //buffer is empty 2140_lastWritePosition = (_lastWritePosition + 1) % _capacity; 2142if(_lastWritePosition == _lastReadPosition) //buffer is full 2148_array[_lastWritePosition] = command; 2158if(_lastWritePosition != _lastReadPosition) //buffer has something 2161&& _array[_lastWritePosition].Code == Commands.SetHorizontalOffset) 2163&& _array[_lastWritePosition].Code == Commands.SetVerticalOffset) 2165&& _array[_lastWritePosition].Code == Commands.MakeVisible)) 2169_array[_lastWritePosition].Param = command.Param; 2170_array[_lastWritePosition].MakeVisibleParam = command.MakeVisibleParam; 2180if(_lastWritePosition == _lastReadPosition) //buffer is empty 2190if(_lastWritePosition == _lastReadPosition) //it was the last command 2199return (_lastWritePosition == _lastReadPosition);