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)
2132
if(
_lastWritePosition
== _lastReadPosition) //buffer is empty
2140
_lastWritePosition = (
_lastWritePosition
+ 1) % _capacity;
2142
if(
_lastWritePosition
== _lastReadPosition) //buffer is full
2148
_array[
_lastWritePosition
] = command;
2158
if(
_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;
2180
if(
_lastWritePosition
== _lastReadPosition) //buffer is empty
2190
if(
_lastWritePosition
== _lastReadPosition) //it was the last command
2199
return (
_lastWritePosition
== _lastReadPosition);