public override AbstractHistogram copyCorrectedForCoordinatedOmission(long expectedIntervalBetweenValueSamples) { lock (SyncLock) { var toHistogram = new SynchronizedHistogram(this); toHistogram.addWhileCorrectingForCoordinatedOmission(this, expectedIntervalBetweenValueSamples); return(toHistogram); } }
public override AbstractHistogram copy() { lock (SyncLock) { SynchronizedHistogram copy; lock (this) { copy = new SynchronizedHistogram(this); } copy.add(this); return(copy); } }