18 references to _gate
Microsoft.CodeAnalysis.Remote.ServiceHub (18)
Host\RemoteWorkspace.cs (4)
120using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 153using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 177using (await _gate.DisposableWaitAsync(CancellationToken.None).ConfigureAwait(false)) 290using (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 (7)
19/// cref="_gate"/>. 25/// for the same few checksum that don't run concurrently. Only read/write while holding <see cref="_gate"/>. 34/// read/write while holding <see cref="_gate"/>. 46Contract.ThrowIfFalse(_gate.CurrentCount == 0); 69Contract.ThrowIfFalse(_gate.CurrentCount == 0); 105Contract.ThrowIfFalse(_gate.CurrentCount == 0); 124using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false))