3 writes to _lastReadPosition
PresentationFramework (3)
System\Windows\Controls\ScrollViewer.cs (3)
2141
_lastWritePosition =
_lastReadPosition
= 0;
2151
_lastReadPosition
= (_lastReadPosition + 1) % _capacity;
2190
_lastReadPosition
= (_lastReadPosition + 1) % _capacity;
10 references to _lastReadPosition
PresentationFramework (10)
System\Windows\Controls\ScrollViewer.cs (10)
2138
if(_lastWritePosition ==
_lastReadPosition
) //buffer is empty
2148
if(_lastWritePosition ==
_lastReadPosition
) //buffer is full
2151
_lastReadPosition = (
_lastReadPosition
+ 1) % _capacity;
2164
if(_lastWritePosition !=
_lastReadPosition
) //buffer has something
2186
if(_lastWritePosition ==
_lastReadPosition
) //buffer is empty
2190
_lastReadPosition = (
_lastReadPosition
+ 1) % _capacity;
2193
Command command = _array[
_lastReadPosition
];
2194
_array[
_lastReadPosition
].MakeVisibleParam = null; //to release the allocated object
2196
if(_lastWritePosition ==
_lastReadPosition
) //it was the last command
2205
return (_lastWritePosition ==
_lastReadPosition
);