21 references to _receiveMutex
System.Net.WebSockets (21)
System\Net\WebSockets\ManagedWebSocket.cs (21)
157NetEventSource.Associate(this, _receiveMutex); 254DisposeSafe(_inflater, _receiveMutex); 792await _receiveMutex.EnterAsync(cancellationToken).ConfigureAwait(false); 793if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(_receiveMutex); 1001_receiveMutex.Exit(); 1002if (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> 1142await _receiveMutex.EnterAsync(cancellationToken).ConfigureAwait(false); 1144if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(_receiveMutex); 1147Debug.Assert(_receiveMutex.IsHeld, $"Expected {nameof(_receiveMutex)} to be held"); 1176_receiveMutex.Exit(); 1177if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexExited(_receiveMutex); 1187Debug.Assert(_receiveMutex.IsHeld, $"Caller should hold the {nameof(_receiveMutex)}"); 1291Debug.Assert(_receiveMutex.IsHeld, $"Caller should hold the {nameof(_receiveMutex)}"); 1483await _receiveMutex.EnterAsync(cancellationToken).ConfigureAwait(false); 1484if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(_receiveMutex); 1495_receiveMutex.Exit(); 1496if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexExited(_receiveMutex);