3 writes to _gate
System.Net.WebSockets (3)
System\Net\WebSockets\AsyncMutex.cs (3)
64int gate = Interlocked.Decrement(ref _gate); 152Interlocked.Increment(ref m._gate); 193int gate = Interlocked.Increment(ref _gate);
4 references to _gate
System.Net.WebSockets (4)
System\Net\WebSockets\AsyncMutex.cs (4)
26/// This is only meaningful after having updated <see cref="_gate"/> via interlockeds and taken the appropriate path. 27/// If after decrementing <see cref="_gate"/> we end up with a negative count, the mutex is contended, hence 45public bool IsHeld => _gate != 1; 196if (NetEventSource.Log.IsEnabled()) NetEventSource.Trace(this, $"Unblocking next waiter on exit, remaining queue length {-_gate}", nameof(Exit));