21 references to _receiveMutex
System.Net.WebSockets (21)
System\Net\WebSockets\ManagedWebSocket.cs (21)
157
NetEventSource.Associate(this,
_receiveMutex
);
254
DisposeSafe(_inflater,
_receiveMutex
);
792
await
_receiveMutex
.EnterAsync(cancellationToken).ConfigureAwait(false);
793
if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(
_receiveMutex
);
1001
_receiveMutex
.Exit();
1002
if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexExited(
_receiveMutex
);
1133
/// <summary>Issues a read on the stream to wait for EOF, optionally acquiring <see cref="
_receiveMutex
"/> first.</summary>
1142
await
_receiveMutex
.EnterAsync(cancellationToken).ConfigureAwait(false);
1144
if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(
_receiveMutex
);
1147
Debug.Assert(
_receiveMutex
.IsHeld, $"Expected {nameof(
_receiveMutex
)} to be held");
1176
_receiveMutex
.Exit();
1177
if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexExited(
_receiveMutex
);
1187
Debug.Assert(
_receiveMutex
.IsHeld, $"Caller should hold the {nameof(
_receiveMutex
)}");
1291
Debug.Assert(
_receiveMutex
.IsHeld, $"Caller should hold the {nameof(
_receiveMutex
)}");
1483
await
_receiveMutex
.EnterAsync(cancellationToken).ConfigureAwait(false);
1484
if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(
_receiveMutex
);
1495
_receiveMutex
.Exit();
1496
if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexExited(
_receiveMutex
);