35 references to QueueState
System.Net.Sockets (35)
System\Net\Sockets\SocketAsyncContext.Unix.cs (35)
778
private
QueueState
_state; // See above
801
_state =
QueueState
.Ready;
817
Debug.Assert(sizeof(
QueueState
) == sizeof(int));
818
QueueState
state = (
QueueState
)Volatile.Read(ref Unsafe.As<
QueueState
, int>(ref _state));
821
bool isReady = state ==
QueueState
.Ready || state ==
QueueState
.Stopped;
852
case
QueueState
.Ready:
863
_state =
QueueState
.Waiting;
864
goto case
QueueState
.Waiting;
866
case
QueueState
.Waiting:
867
case
QueueState
.Processing:
895
case
QueueState
.Stopped:
956
case
QueueState
.Ready:
962
case
QueueState
.Waiting:
973
_state =
QueueState
.Processing;
977
case
QueueState
.Processing:
983
case
QueueState
.Stopped:
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!");
1085
_state =
QueueState
.Waiting;
1098
if (_state ==
QueueState
.Stopped)
1105
Debug.Assert(_state ==
QueueState
.Processing, $"_state={_state} while processing queue!");
1113
_state =
QueueState
.Ready;
1142
if (_state ==
QueueState
.Stopped)
1167
if (_state ==
QueueState
.Processing)
1173
_state =
QueueState
.Ready;
1181
else if (_state ==
QueueState
.Waiting)
1185
_state =
QueueState
.Ready;
1218
Debug.Assert(_state !=
QueueState
.Stopped);
1224
Debug.Assert(_state !=
QueueState
.Stopped);
1226
_state =
QueueState
.Stopped;