5 writes to _pool
Microsoft.Extensions.ML (5)
PoolLoader.cs (5)
54
public ObjectPool<PredictionEngine<TData, TPrediction>> PredictionEnginePool { get { return Volatile.Read(ref
_pool
); } }
62
var pool = Volatile.Read(ref
_pool
);
108
var oldPool = Interlocked.Exchange(ref
_pool
, newPool);
113
if (Volatile.Read(ref _disposed) != 0 && Interlocked.CompareExchange(ref
_pool
, null, newPool) == newPool)
141
var pool = Interlocked.Exchange(ref
_pool
, null);