7 writes to _state
System.Web (7)
Util\CancellationTokenHelper.cs (7)
34
_state
= (canceled) ? STATE_CANCELED : STATE_CREATED;
47
if (Interlocked.CompareExchange(ref
_state
, STATE_CANCELING, STATE_CREATED) == STATE_CREATED) {
59
if (Interlocked.CompareExchange(ref
_state
, STATE_CANCELED, STATE_CANCELING) == STATE_DISPOSING) {
63
Interlocked.Exchange(ref
_state
, STATE_DISPOSED);
73
int originalState = Interlocked.Exchange(ref
_state
, STATE_DISPOSING);
81
Interlocked.Exchange(ref
_state
, STATE_DISPOSED);
87
Interlocked.Exchange(ref
_state
, STATE_DISPOSED);