21 references to _receiveMutex
System.Net.WebSockets (21)
System\Net\WebSockets\ManagedWebSocket.cs (21)
157
NetEventSource.Associate(this,
_receiveMutex
);
254
DisposeSafe(_inflater,
_receiveMutex
);
791
await
_receiveMutex
.EnterAsync(cancellationToken).ConfigureAwait(false);
792
if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(
_receiveMutex
);
1000
_receiveMutex
.Exit();
1001
if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexExited(
_receiveMutex
);
1132
/// <summary>Issues a read on the stream to wait for EOF, optionally acquiring <see cref="
_receiveMutex
"/> first.</summary>
1141
await
_receiveMutex
.EnterAsync(cancellationToken).ConfigureAwait(false);
1143
if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(
_receiveMutex
);
1146
Debug.Assert(
_receiveMutex
.IsHeld, $"Expected {nameof(
_receiveMutex
)} to be held");
1175
_receiveMutex
.Exit();
1176
if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexExited(
_receiveMutex
);
1186
Debug.Assert(
_receiveMutex
.IsHeld, $"Caller should hold the {nameof(
_receiveMutex
)}");
1290
Debug.Assert(
_receiveMutex
.IsHeld, $"Caller should hold the {nameof(
_receiveMutex
)}");
1482
await
_receiveMutex
.EnterAsync(cancellationToken).ConfigureAwait(false);
1483
if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(
_receiveMutex
);
1494
_receiveMutex
.Exit();
1495
if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexExited(
_receiveMutex
);