2 writes to _lastWritePosition
PresentationFramework (2)
System\Windows\Controls\ScrollViewer.cs (2)
2141
_lastWritePosition
= _lastReadPosition = 0;
2146
_lastWritePosition
= (_lastWritePosition + 1) % _capacity;
13 references to _lastWritePosition
PresentationFramework (13)
System\Windows\Controls\ScrollViewer.cs (13)
2138
if(
_lastWritePosition
== _lastReadPosition) //buffer is empty
2146
_lastWritePosition = (
_lastWritePosition
+ 1) % _capacity;
2148
if(
_lastWritePosition
== _lastReadPosition) //buffer is full
2154
_array[
_lastWritePosition
] = command;
2164
if(
_lastWritePosition
!= _lastReadPosition) //buffer has something
2167
&& _array[
_lastWritePosition
].Code == Commands.SetHorizontalOffset)
2169
&& _array[
_lastWritePosition
].Code == Commands.SetVerticalOffset)
2171
&& _array[
_lastWritePosition
].Code == Commands.MakeVisible))
2175
_array[
_lastWritePosition
].Param = command.Param;
2176
_array[
_lastWritePosition
].MakeVisibleParam = command.MakeVisibleParam;
2186
if(
_lastWritePosition
== _lastReadPosition) //buffer is empty
2196
if(
_lastWritePosition
== _lastReadPosition) //it was the last command
2205
return (
_lastWritePosition
== _lastReadPosition);