21 references to _receiveMutex
System.Net.WebSockets (21)
System\Net\WebSockets\ManagedWebSocket.cs (21)
157
NetEventSource.Associate(this,
_receiveMutex
);
254
DisposeSafe(_inflater,
_receiveMutex
);
805
await
_receiveMutex
.EnterAsync(cancellationToken).ConfigureAwait(false);
806
if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(
_receiveMutex
);
1013
_receiveMutex
.Exit();
1014
if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexExited(
_receiveMutex
);
1145
/// <summary>Issues a read on the stream to wait for EOF, optionally acquiring <see cref="
_receiveMutex
"/> first.</summary>
1154
await
_receiveMutex
.EnterAsync(cancellationToken).ConfigureAwait(false);
1156
if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(
_receiveMutex
);
1159
Debug.Assert(
_receiveMutex
.IsHeld, $"Expected {nameof(
_receiveMutex
)} to be held");
1188
_receiveMutex
.Exit();
1189
if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexExited(
_receiveMutex
);
1199
Debug.Assert(
_receiveMutex
.IsHeld, $"Caller should hold the {nameof(
_receiveMutex
)}");
1303
Debug.Assert(
_receiveMutex
.IsHeld, $"Caller should hold the {nameof(
_receiveMutex
)}");
1495
await
_receiveMutex
.EnterAsync(cancellationToken).ConfigureAwait(false);
1496
if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(
_receiveMutex
);
1507
_receiveMutex
.Exit();
1508
if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexExited(
_receiveMutex
);