3 writes to _initialized
Microsoft.CodeAnalysis (3)
InternalUtilities\SingleInitNullable.cs (3)
51
=> Volatile.Read(ref
_initialized
) == 2 ? _value : null;
58
switch (Interlocked.CompareExchange(ref
_initialized
, value: 1, comparand: 0))
63
Volatile.Write(ref
_initialized
, 2);
1 reference to _initialized
Microsoft.CodeAnalysis (1)
InternalUtilities\SingleInitNullable.cs (1)
28
/// Actual stored value. Only safe to read once <see cref="
_initialized
"/> is set to 2.