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)
164
Contracts.Check(!
_locked
, "Cannot continue to sample after Lock() has been called");
230
if (!
_locked
&& _numSampled < _reservoir.Length)
248
Contracts.Check(
_locked
, "Call Lock() before the call to GetSample()");