21 references to _receiveMutex
System.Net.WebSockets (21)
System\Net\WebSockets\ManagedWebSocket.cs (21)
157NetEventSource.Associate(this, _receiveMutex); 254DisposeSafe(_inflater, _receiveMutex); 805await _receiveMutex.EnterAsync(cancellationToken).ConfigureAwait(false); 806if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(_receiveMutex); 1013_receiveMutex.Exit(); 1014if (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> 1154await _receiveMutex.EnterAsync(cancellationToken).ConfigureAwait(false); 1156if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(_receiveMutex); 1159Debug.Assert(_receiveMutex.IsHeld, $"Expected {nameof(_receiveMutex)} to be held"); 1188_receiveMutex.Exit(); 1189if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexExited(_receiveMutex); 1199Debug.Assert(_receiveMutex.IsHeld, $"Caller should hold the {nameof(_receiveMutex)}"); 1303Debug.Assert(_receiveMutex.IsHeld, $"Caller should hold the {nameof(_receiveMutex)}"); 1495await _receiveMutex.EnterAsync(cancellationToken).ConfigureAwait(false); 1496if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexEntered(_receiveMutex); 1507_receiveMutex.Exit(); 1508if (NetEventSource.Log.IsEnabled()) NetEventSource.MutexExited(_receiveMutex);