9 writes to _state
System.Net.Sockets (9)
System\Net\Sockets\SocketAsyncContext.Unix.cs (9)
803
_state
= QueueState.Ready;
820
QueueState state = (QueueState)Volatile.Read(ref Unsafe.As<QueueState, int>(ref
_state
));
865
_state
= QueueState.Waiting;
975
_state
= QueueState.Processing;
1087
_state
= QueueState.Waiting;
1115
_state
= QueueState.Ready;
1175
_state
= QueueState.Ready;
1187
_state
= QueueState.Ready;
1228
_state
= QueueState.Stopped;
17 references to _state
System.Net.Sockets (17)
System\Net\Sockets\SocketAsyncContext.Unix.cs (17)
852
switch (
_state
)
956
switch (
_state
)
1040
if (
_state
== QueueState.Stopped)
1048
Debug.Assert(
_state
== QueueState.Processing, $"_state={
_state
} while processing queue!");
1068
if (
_state
== QueueState.Stopped)
1076
Debug.Assert(
_state
== QueueState.Processing, $"_state={
_state
} while processing queue!");
1100
if (
_state
== QueueState.Stopped)
1107
Debug.Assert(
_state
== QueueState.Processing, $"_state={
_state
} while processing queue!");
1144
if (
_state
== QueueState.Stopped)
1169
if (
_state
== QueueState.Processing)
1183
else if (
_state
== QueueState.Waiting)
1220
Debug.Assert(
_state
!= QueueState.Stopped);
1226
Debug.Assert(
_state
!= QueueState.Stopped);
1257
OutputTrace($"{IdOf(context)}-{queueType}.{memberName}: {message}, {
_state
}-{_sequenceNumber}, {((_tail == null) ? "empty" : "not empty")}");