2 writes to _lastWritePosition
PresentationFramework (2)
src\Framework\System\Windows\Controls\ScrollViewer.cs (2)
2187
_lastWritePosition
= _lastReadPosition = 0;
2192
_lastWritePosition
= (_lastWritePosition + 1) % _capacity;
13 references to _lastWritePosition
PresentationFramework (13)
src\Framework\System\Windows\Controls\ScrollViewer.cs (13)
2184
if(
_lastWritePosition
== _lastReadPosition) //buffer is empty
2192
_lastWritePosition = (
_lastWritePosition
+ 1) % _capacity;
2194
if(
_lastWritePosition
== _lastReadPosition) //buffer is full
2200
_array[
_lastWritePosition
] = command;
2210
if(
_lastWritePosition
!= _lastReadPosition) //buffer has something
2214
&& _array[
_lastWritePosition
].Code == Commands.SetHorizontalOffset)
2216
&& _array[
_lastWritePosition
].Code == Commands.SetVerticalOffset)
2218
&& _array[
_lastWritePosition
].Code == Commands.MakeVisible))
2222
_array[
_lastWritePosition
].Param = command.Param;
2223
_array[
_lastWritePosition
].MakeVisibleParam = command.MakeVisibleParam;
2233
if(
_lastWritePosition
== _lastReadPosition) //buffer is empty
2243
if(
_lastWritePosition
== _lastReadPosition) //it was the last command
2252
return (
_lastWritePosition
== _lastReadPosition);