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)
2130
if(
_lastWritePosition
== _lastReadPosition) //buffer is empty
2138
_lastWritePosition = (
_lastWritePosition
+ 1) % _capacity;
2140
if(
_lastWritePosition
== _lastReadPosition) //buffer is full
2146
_array[
_lastWritePosition
] = command;
2156
if(
_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;
2178
if(
_lastWritePosition
== _lastReadPosition) //buffer is empty
2188
if(
_lastWritePosition
== _lastReadPosition) //it was the last command
2197
return (
_lastWritePosition
== _lastReadPosition);