3 writes to _lastReadPosition
PresentationFramework (3)
src\Framework\System\Windows\Controls\ScrollViewer.cs (3)
2187
_lastWritePosition =
_lastReadPosition
= 0;
2197
_lastReadPosition
= (_lastReadPosition + 1) % _capacity;
2237
_lastReadPosition
= (_lastReadPosition + 1) % _capacity;
10 references to _lastReadPosition
PresentationFramework (10)
src\Framework\System\Windows\Controls\ScrollViewer.cs (10)
2184
if(_lastWritePosition ==
_lastReadPosition
) //buffer is empty
2194
if(_lastWritePosition ==
_lastReadPosition
) //buffer is full
2197
_lastReadPosition = (
_lastReadPosition
+ 1) % _capacity;
2210
if(_lastWritePosition !=
_lastReadPosition
) //buffer has something
2233
if(_lastWritePosition ==
_lastReadPosition
) //buffer is empty
2237
_lastReadPosition = (
_lastReadPosition
+ 1) % _capacity;
2240
Command command = _array[
_lastReadPosition
];
2241
_array[
_lastReadPosition
].MakeVisibleParam = null; //to release the allocated object
2243
if(_lastWritePosition ==
_lastReadPosition
) //it was the last command
2252
return (_lastWritePosition ==
_lastReadPosition
);