* @since 3.0
*/
@Override
- public ITmfLocation getLocation() {
+ public synchronized ITmfLocation getLocation() {
return fCurLocation;
}
* @since 3.0
*/
@Override
- public void setLocation(ITmfLocation location) {
+ public synchronized void setLocation(ITmfLocation location) {
fCurLocation = (CtfLocation) location;
if (fCurLocation != null) {
getIterator().seek(fCurLocation.getLocationInfo());
*/
public synchronized boolean advance() {
final CtfLocationInfo curLocationData = fCurLocation.getLocationInfo();
- boolean retVal = getIterator().advance();
- CtfTmfEvent currentEvent = getIterator().getCurrentEvent();
+ CtfIterator iterator = getIterator();
+ boolean retVal = iterator.advance();
+ CtfTmfEvent currentEvent = iterator.getCurrentEvent();
if (currentEvent != null) {
- final long timestampValue = currentEvent.getTimestamp().getValue();
+ final long timestampValue = iterator.getCurrentTimestamp();
if (curLocationData.getTimestamp() == timestampValue) {
fCurLocation = new CtfLocation(timestampValue, curLocationData.getIndex() + 1);
} else {