2 writes to _lastWritePosition
PresentationFramework (2)
System\Windows\Controls\ScrollViewer.cs (2)
2133_lastWritePosition = _lastReadPosition = 0; 2138_lastWritePosition = (_lastWritePosition + 1) % _capacity;
13 references to _lastWritePosition
PresentationFramework (13)
System\Windows\Controls\ScrollViewer.cs (13)
2130if(_lastWritePosition == _lastReadPosition) //buffer is empty 2138_lastWritePosition = (_lastWritePosition + 1) % _capacity; 2140if(_lastWritePosition == _lastReadPosition) //buffer is full 2146_array[_lastWritePosition] = command; 2156if(_lastWritePosition != _lastReadPosition) //buffer has something 2159&& _array[_lastWritePosition].Code == Commands.SetHorizontalOffset) 2161&& _array[_lastWritePosition].Code == Commands.SetVerticalOffset) 2163&& _array[_lastWritePosition].Code == Commands.MakeVisible)) 2167_array[_lastWritePosition].Param = command.Param; 2168_array[_lastWritePosition].MakeVisibleParam = command.MakeVisibleParam; 2178if(_lastWritePosition == _lastReadPosition) //buffer is empty 2188if(_lastWritePosition == _lastReadPosition) //it was the last command 2197return (_lastWritePosition == _lastReadPosition);