9 writes to _state
System.Net.Sockets (9)
System\Net\Sockets\SocketAsyncContext.Unix.cs (9)
801
_state
= QueueState.Ready;
818
QueueState state = (QueueState)Volatile.Read(ref Unsafe.As<QueueState, int>(ref
_state
));
863
_state
= QueueState.Waiting;
973
_state
= QueueState.Processing;
1085
_state
= QueueState.Waiting;
1113
_state
= QueueState.Ready;
1173
_state
= QueueState.Ready;
1185
_state
= QueueState.Ready;
1226
_state
= QueueState.Stopped;
17 references to _state
System.Net.Sockets (17)
System\Net\Sockets\SocketAsyncContext.Unix.cs (17)
850
switch (
_state
)
954
switch (
_state
)
1038
if (
_state
== QueueState.Stopped)
1046
Debug.Assert(
_state
== QueueState.Processing, $"_state={
_state
} while processing queue!");
1066
if (
_state
== QueueState.Stopped)
1074
Debug.Assert(
_state
== QueueState.Processing, $"_state={
_state
} while processing queue!");
1098
if (
_state
== QueueState.Stopped)
1105
Debug.Assert(
_state
== QueueState.Processing, $"_state={
_state
} while processing queue!");
1142
if (
_state
== QueueState.Stopped)
1167
if (
_state
== QueueState.Processing)
1181
else if (
_state
== QueueState.Waiting)
1218
Debug.Assert(
_state
!= QueueState.Stopped);
1224
Debug.Assert(
_state
!= QueueState.Stopped);
1255
OutputTrace($"{IdOf(context)}-{queueType}.{memberName}: {message}, {
_state
}-{_sequenceNumber}, {((_tail == null) ? "empty" : "not empty")}");