1 write to _locked
Microsoft.ML.Core (1)
Utilities\ReservoirSampler.cs (1)
239_locked = true;
3 references to _locked
Microsoft.ML.Core (3)
Utilities\ReservoirSampler.cs (3)
164Contracts.Check(!_locked, "Cannot continue to sample after Lock() has been called"); 230if (!_locked && _numSampled < _reservoir.Length) 248Contracts.Check(_locked, "Call Lock() before the call to GetSample()");