17 references to _gate
Microsoft.CodeAnalysis.Remote.ServiceHub (17)
Host\RemoteWorkspace.cs (4)
138using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 171using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 195using (await _gate.DisposableWaitAsync(CancellationToken.None).ConfigureAwait(false)) 300using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false))
Host\RemoteWorkspace.InFlightSolution.cs (7)
43/// <see cref="RemoteWorkspace._gate"/>. 59Contract.ThrowIfFalse(workspace._gate.CurrentCount == 0); 81Contract.ThrowIfFalse(_workspace._gate.CurrentCount == 0); 90Contract.ThrowIfFalse(_workspace._gate.CurrentCount == 0); 109Contract.ThrowIfFalse(_workspace._gate.CurrentCount == 0); 146Contract.ThrowIfFalse(_workspace._gate.CurrentCount == 0); 160Contract.ThrowIfFalse(_workspace._gate.CurrentCount == 0);
Host\RemoteWorkspace_SolutionCaching.cs (6)
16/// cref="_gate"/>. 22/// same checksum that don't run concurrently. Only read/write while holding <see cref="_gate"/>. 31/// read/write while holding <see cref="_gate"/>. 44Contract.ThrowIfFalse(_gate.CurrentCount == 0); 67Contract.ThrowIfFalse(_gate.CurrentCount == 0); 103Contract.ThrowIfFalse(_gate.CurrentCount == 0);