public void FixationEnd(int time, int duration, int x, int y) { SFDFixation fix = new SFDFixation(); fix.Time = time; fix.Duration = duration; fix.X = x; fix.Y = y; lock (this) { if (collectingData) { fixations.AddLast(fix); } } }