18 references to _gate
Microsoft.CodeAnalysis.Remote.ServiceHub (18)
Host\RemoteWorkspace.cs (4)
119using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 152using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 176using (await _gate.DisposableWaitAsync(CancellationToken.None).ConfigureAwait(false)) 289using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false))
Host\RemoteWorkspace.InFlightSolution.cs (7)
41/// <see cref="RemoteWorkspace._gate"/>. 57Contract.ThrowIfFalse(workspace._gate.CurrentCount == 0); 79Contract.ThrowIfFalse(_workspace._gate.CurrentCount == 0); 88Contract.ThrowIfFalse(_workspace._gate.CurrentCount == 0); 107Contract.ThrowIfFalse(_workspace._gate.CurrentCount == 0); 144Contract.ThrowIfFalse(_workspace._gate.CurrentCount == 0); 158Contract.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))