4 writes to _state
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeHandle.cs (4)
67
_state
= StateBits.RefCountOne; // Ref count 1 and not closed or disposed.
130
Interlocked.Or(ref
_state
, StateBits.Closed);
180
} while (Interlocked.CompareExchange(ref
_state
, newState, oldState) != oldState);
255
} while (Interlocked.CompareExchange(ref
_state
, newState, oldState) != oldState);
4 references to _state
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeHandle.cs (4)
43
/// <summary>Bitmasks for the <see cref="
_state
"/> field.</summary>
100
public bool IsClosed => (
_state
& StateBits.Closed) == StateBits.Closed;
171
oldState =
_state
;
213
oldState =
_state
;