3 writes to _lastReadPosition
PresentationFramework (3)
System\Windows\Controls\ScrollViewer.cs (3)
2133
_lastWritePosition =
_lastReadPosition
= 0;
2143
_lastReadPosition
= (_lastReadPosition + 1) % _capacity;
2182
_lastReadPosition
= (_lastReadPosition + 1) % _capacity;
10 references to _lastReadPosition
PresentationFramework (10)
System\Windows\Controls\ScrollViewer.cs (10)
2130
if(_lastWritePosition ==
_lastReadPosition
) //buffer is empty
2140
if(_lastWritePosition ==
_lastReadPosition
) //buffer is full
2143
_lastReadPosition = (
_lastReadPosition
+ 1) % _capacity;
2156
if(_lastWritePosition !=
_lastReadPosition
) //buffer has something
2178
if(_lastWritePosition ==
_lastReadPosition
) //buffer is empty
2182
_lastReadPosition = (
_lastReadPosition
+ 1) % _capacity;
2185
Command command = _array[
_lastReadPosition
];
2186
_array[
_lastReadPosition
].MakeVisibleParam = null; //to release the allocated object
2188
if(_lastWritePosition ==
_lastReadPosition
) //it was the last command
2197
return (_lastWritePosition ==
_lastReadPosition
);