21 references to _receiveMutex
System.Net.WebSockets (21)
System\Net\WebSockets\ManagedWebSocket.cs (21)
157NetEventSource.Associate(this, _receiveMutex); 254DisposeSafe(_inflater, _receiveMutex); 791await _receiveMutex.EnterAsync(cancellationToken).ConfigureAwait(false); 792if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(_receiveMutex); 1000_receiveMutex.Exit(); 1001if (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> 1141await _receiveMutex.EnterAsync(cancellationToken).ConfigureAwait(false); 1143if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(_receiveMutex); 1146Debug.Assert(_receiveMutex.IsHeld, $"Expected {nameof(_receiveMutex)} to be held"); 1175_receiveMutex.Exit(); 1176if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexExited(_receiveMutex); 1186Debug.Assert(_receiveMutex.IsHeld, $"Caller should hold the {nameof(_receiveMutex)}"); 1290Debug.Assert(_receiveMutex.IsHeld, $"Caller should hold the {nameof(_receiveMutex)}"); 1482await _receiveMutex.EnterAsync(cancellationToken).ConfigureAwait(false); 1483if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(_receiveMutex); 1494_receiveMutex.Exit(); 1495if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexExited(_receiveMutex);