3 writes to _initialized
Microsoft.CodeAnalysis.CodeStyle (3)
src\Compilers\Core\Portable\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.CodeStyle (1)
src\Compilers\Core\Portable\InternalUtilities\SingleInitNullable.cs (1)
28
/// Actual stored value. Only safe to read once <see cref="
_initialized
"/> is set to 2.